Skip to content

write_html: number an <ol> with an unknown type 1, 2, 3, like browsers - #2011

Merged
andersonhc merged 1 commit into
py-pdf:masterfrom
RavSinghChandan:html-ol-unknown-type
Oct 12, 2026
Merged

andersonhc merged 1 commit into
py-pdf:masterfrom
RavSinghChandan:html-ol-unknown-type

Conversation

@RavSinghChandan

@RavSinghChandan RavSinghChandan commented Oct 12, 2026 •

Copy link
Copy Markdown

<ol type="disc"> or any type other than 1, a, A, i and I raised NotImplementedError: Unsupported type. Browsers ignore an unknown type and number the list 1, 2, 3. Now fpdf2 does the same; the five valid types (which are case-sensitive) work as before. Added tests.

e.g. Fixes #0

Checklist:

  • A unit test is covering the code added / modified by this PR

  • 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

  • This PR is ready to be merged

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

@andersonhc
andersonhc merged commit e0745ec into py-pdf:master Oct 12, 2026
23 checks passed
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.

2 participants