]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (#114168)
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 17 Jan 2024 05:24:59 +0000 (00:24 -0500)
committerGitHub <noreply@github.com>
Wed, 17 Jan 2024 05:24:59 +0000 (05:24 +0000)
This matches Firefox format.  Edge double-spaces non-simple
list but I think it looks worse.

Lib/idlelib/help.py

index dfccfcb9bda89aa40929f3ed9dd7a66b7e57b507..bdf4b2b29f11a261a8e9a2c3fe9a0ec4c582de92 100644 (file)
@@ -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