Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing: bullet/top_margin combo & width of indented paragraphs & some HTML bugs #1218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gmischler
Copy link
Collaborator

@gmischler gmischler commented Jul 6, 2024

Fixes:

  • paragraph top_margin was ignored in the presence of a bullet (see discussion in write_html(): homogenization in handling of tag_styles + new optional arg font_family #1217)
  • indented paragraphs weren't made narrower, but the whole paragraph just shifted to the right.
  • Converting legacy _ln() for <li> to top_margin value in html.py. Some HTML tests need a t_margin value added to their TextStyle to avoid automatic empty lines in _new_paragraph().
  • While testing the previous item, it became obvious that the ln() of the text regions didn't always do what it is supposed to do with an explicit height given. This resulted in the "2mm" specification to simply be ignored, so that the layout of lists will now include a slightly wider gap, as was initially intended.

Checklist:

  • The GitHub pipeline is OK (green),
    meaning that both pylint (static code analyzer) and black (code formatter) are happy with the changes of this PR.
  • A unit test is covering the code added / modified by this PR
  • This PR is ready to be merged
  • [NA] In case of a new feature, docstrings have been added, with also some documentation in the docs/ folder
  • A mention of the change is present in CHANGELOG.md

By submitting this pull request, I confirm that my contribution is made under the terms of the GNU LGPL 3.0 license.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant