mirror of
https://github.com/python/cpython.git
synced 2025-07-09 20:35:26 +00:00
[3.11] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) (#114171)
This matches Firefox format. Edge double-spaces non-simple
list but I think it looks worse.
(cherry picked from commit e07a400c31
)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
644b4a1e87
commit
069cca7c2b
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class HelpParser(HTMLParser):
|
|||
if self.level > 0:
|
||||
self.nested_dl = True
|
||||
elif tag == 'li':
|
||||
s = '\n* ' if self.simplelist else '\n\n* '
|
||||
s = '\n* '
|
||||
elif tag == 'dt':
|
||||
s = '\n\n' if not self.nested_dl else '\n' # Avoid extra line.
|
||||
self.nested_dl = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue