From 069cca7c2bcceb95aaf843bee32780f7720efa33 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 17 Jan 2024 07:35:35 +0100 Subject: [PATCH] [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 --- Lib/idlelib/help.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ 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