https://github.com/python/cpython/commit/f1f2d204d13cdd541c0c32ee4d6763d49e79ac59 commit: f1f2d204d13cdd541c0c32ee4d6763d49e79ac59 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: terryjreedy <[email protected]> date: 2024-01-17T01:35:15-05:00 summary:
[3.12] gh-81479: For Help => IDLE Doc, stop double-spacing some lists. (GH-114168) (#114170) This matches Firefox format. Edge double-spaces non-simple lists but I think it looks worse. (cherry picked from commit e07a400c310ad3bdd72bb0ae401991af17435e4d) Co-authored-by: Terry Jan Reedy <[email protected]> files: M Lib/idlelib/help.py diff --git a/Lib/idlelib/help.py b/Lib/idlelib/help.py index dfccfcb9bda89a..bdf4b2b29f11a2 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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
