From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Wed, 17 Jan 2024 06:35:35 +0000 (+0100) Subject: [3.11] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168... X-Git-Tag: v3.11.8~142 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=069cca7c2bcceb95aaf843bee32780f7720efa33;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) (#114171) This matches Firefox format. Edge double-spaces non-simple list but I think it looks worse. (cherry picked from commit e07a400c310ad3bdd72bb0ae401991af17435e4d) Co-authored-by: Terry Jan Reedy --- 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