Skip to content

Commit

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

This matches Firefox format.  Edge double-spaces non-simple
list but I think it looks worse.
  • Loading branch information
terryjreedy authored and pull[bot] committed Apr 3, 2024
1 parent 33b8a5b commit 2999226
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 2999226

Please sign in to comment.