We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug HTML blockquotes are not indented and as a consequence nested blockquotes are not indented.
Minimal code
from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.write_html("before<blockquote>level 1</blockquote>after") pdf.write_html("before<blockquote>level 1<blockquote>level 2</blockquote></blockquote>after") pdf.output("test_blockquotes.pdf")
Environment Please provide the following information:
fpdf2
The text was updated successfully, but these errors were encountered:
Hi @dmail00
As the default HTML <blockquote> is usually rendered with a default margin-left: 40px, we could indeed handle some left margin for thos elements.
<blockquote>
margin-left: 40px
Interestingly, the code the renders <bloquote> tags already as some kind of "indent" logic: https://github.com/py-pdf/fpdf2/blob/2.7.7/fpdf/html.py#L500 But I don't think it ever worked...
<bloquote>
@dmail00: would you like to contribute a PR to implement this?
@gmischler: do you think that this kind of indent should be handled by paragraphs / text regions?
Sorry, something went wrong.
Yes, as in #1073, giving Paragraph()s an indent option would probably be the cleanest solution here.
Paragraph()
indent
A first implementation of this feature will be added by PR #1124
No branches or pull requests
Describe the bug
HTML blockquotes are not indented and as a consequence nested blockquotes are not indented.
Minimal code
Environment
Please provide the following information:
fpdf2
version used: 2.7.7The text was updated successfully, but these errors were encountered: