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

PDF and HTML line breaks do not match #966

Open
svenseeberg opened this issue Oct 30, 2024 · 1 comment
Open

PDF and HTML line breaks do not match #966

svenseeberg opened this issue Oct 30, 2024 · 1 comment

Comments

@svenseeberg
Copy link

The line breaks of https://berlin.antragsgruen.de/LDK24-2/ein-bezahlbares-zuhause-fur-alle-berliner-innen-schaffen-fur-eine-so-40135 and https://berlin.antragsgruen.de/LDK24-2/ein-bezahlbares-zuhause-fur-alle-berliner-innen-schaffen-fur-eine-so-40135/pdf do not match.

image

image

AFAICT there is nothing wrong with the text itself and this is therefore an issue with the conversion of the HTML text into the PDF.

@CatoTH
Copy link
Owner

CatoTH commented Oct 30, 2024

So the root cause seems to be that the line length in the regular (HTML) version is longer than supported by the PDF with the set up font size - that's why additional line breaks happen in the PDF. With each paragraph, the line numbers are reset though. Solutions would be to either limit the line length, or reduce the font size in the PDF

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

No branches or pull requests

2 participants