From: Terry Jan Reedy Date: Wed, 17 Jan 2024 05:24:59 +0000 (-0500) Subject: gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168) X-Git-Tag: v3.13.0a3~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e07a400c310ad3bdd72bb0ae401991af17435e4d;p=thirdparty%2FPython%2Fcpython.git gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168) This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse. --- diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index dfccfcb9bda8..bdf4b2b29f11 100644 --- a/Lib/idlelib/help.py +++ b/Lib/idlelib/help.py @@ -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