You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I did some analysis here, comparing the HTML specs and the actual behaviour of some popular web browsers, and fount that:
By the specs, every list (including nested lists) should have a margin of 1em both above and below it.
With nested lists, browsers vary in how they implement the top margin, but usually omit the bottom margin.
Our current output is quite similar to what the browsers do (implementing half the spec)
Indent HTML lists correctly (Issue 1073) #1170 will eliminate the top margin of nested lists, technically violating the HTML specs, but looking more balanced and reasonable then what the browsers do.
Describe the bug
An HTML list nested in another HTML list erroneously starts with a newline.
Minimal code
Please include some minimal Python code reproducing your issue:
Environment
Please provide the following information:
fpdf2
version used: current version of the master branch of the remote repository (latest tag is 2.7.8)The text was updated successfully, but these errors were encountered: