Skip to content

Commit

Permalink
[3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (
Browse files Browse the repository at this point in the history
GH-114168) (#114170)

This matches Firefox format.  Edge double-spaces non-simple
lists but I think it looks worse.
(cherry picked from commit e07a400)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
miss-islington and terryjreedy committed Jan 17, 2024
1 parent 5b08b24 commit f1f2d20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/idlelib/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def handle_starttag(self, tag, attrs):
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
Expand Down

0 comments on commit f1f2d20

Please sign in to comment.