summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/help.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-06-27 23:24:08 (GMT)
committerGitHub <noreply@github.com>2022-06-27 23:24:08 (GMT)
commit1d2c8ff38fc4e9de225274e107d38d4dfbe13394 (patch)
tree6f3f762a4584b80446a61f04f6e06309987d80af /Lib/idlelib/help.py
parent5751530f51c1735b763aad886c023cab2ef49cdd (diff)
downloadcpython-1d2c8ff38fc4e9de225274e107d38d4dfbe13394.zip
cpython-1d2c8ff38fc4e9de225274e107d38d4dfbe13394.tar.gz
cpython-1d2c8ff38fc4e9de225274e107d38d4dfbe13394.tar.bz2
gh-82006: IDLE doc improvements (GH-94349)
0. Update text start and stop conditions. 1. Title-case sections but not subsections. 2. Edit Shell Window sections: title, execute, restart. (cherry picked from commit e6391e08bff775a3c10707fd2cfce6963e6ae429) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Diffstat (limited to 'Lib/idlelib/help.py')
-rw-r--r--Lib/idlelib/help.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py
index f420d40..cc027b9 100644
--- a/Lib/idlelib/help.py
+++ b/Lib/idlelib/help.py
@@ -76,9 +76,9 @@ class HelpParser(HTMLParser):
if a == 'class':
class_ = v
s = ''
- if tag == 'div' and class_ == 'section':
+ if tag == 'section' and attrs == [('id', 'idle')]:
self.show = True # Start main content.
- elif tag == 'div' and class_ == 'sphinxsidebar':
+ elif tag == 'div' and class_ == 'clearer':
self.show = False # End main content.
elif tag == 'p' and self.prevtag and not self.prevtag[0]:
# Begin a new block for <p> tags after a closed tag.