Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) #114170

Merged
merged 1 commit into from
Jan 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-1…
…14168)

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

Co-authored-by: Terry Jan Reedy <[email protected]>
  • Loading branch information
terryjreedy authored and miss-islington committed Jan 17, 2024
commit 0a4e47c258636c7d8d0e1623ec79229a430eaffb
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
Loading