mirror of
https://github.com/python/cpython.git
synced 2025-08-29 13:15:11 +00:00
gh-129699: Add description to IDLE doc title (#129727)
Also extend the 'idlelib' section header. These additions affect both the displayed idle.html file and the contents.html file displayed by clicking the Complete table of contents link on the main docs.python.org page. (The module index entries are generated from the module name and synopsis within module files.) --------- Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
1bccd6c34f
commit
33a7094aa6
4 changed files with 68 additions and 66 deletions
|
@ -155,7 +155,9 @@ class HelpParser(HTMLParser):
|
|||
d = data if self.pre else data.replace('\n', ' ')
|
||||
if self.tags == 'h1':
|
||||
try:
|
||||
self.hprefix = d[0:d.index(' ')]
|
||||
self.hprefix = d[:d.index(' ')]
|
||||
if not self.hprefix.isdigit():
|
||||
self.hprefix = ''
|
||||
except ValueError:
|
||||
self.hprefix = ''
|
||||
if self.tags in ['h1', 'h2', 'h3']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue