mirror of https://github.com/python/cpython
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.
This commit is contained in:
parent
8d26db45df
commit
e07a400c31
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue