Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upNot enough space between list items #47
Comments
|
This is probably rendered as two distinct lists, can you share the rst we can take a look? Also can you check in the DOM if you see two distinct lists? |
|
This has now been merged into Python, so you can see it live here: https://docs.python.org/3.10/library/functions.html#zip And you can see the source here: https://raw.githubusercontent.com/python/cpython/master/Doc/library/functions.rst Search for "Shorter iterables can be padded" |
|
Looking at the DOM, I'm not seeing two distinct lists. |
|
@hugovk I understand, and what I'm saying is that there should be more vertical space between list items, regardless of whether they have code blocks in them or not. This is similar to how there's vertical a space between paragraphs. It helps to tell things apart at a glance. |
|
Yes, that's perfect. |
|
I have a vague, old, souvenir of a time where list composed of only small sentences were not spaced, and list composed of long strings were spaced. IIRC this "feature" was removed because it caused strange visual inconsistencies, typically when a long list had a single long element, triggering the "need spacing" thing. So ensure it renders correctly for lists of short sentences, like:
and don't resurect the old bug :) (I searched here, in my emails, and on bugs.python.org and can't find where the issue was reported and fixed, sry. If someone remembers something... please link!) |



See this screenshot for documentation that I'm writing as part of PEP 618:
The list item to the right of the cursor is awkward. I think there should be more space between it and the one above it.