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

Incorrect alignment in html list bullets #69

Open
NatashaOsipenko opened this issue Jan 16, 2024 · 3 comments
Open

Incorrect alignment in html list bullets #69

NatashaOsipenko opened this issue Jan 16, 2024 · 3 comments

Comments

@NatashaOsipenko
Copy link

Hi,
I am using react-pdf and react-pdf-html to create a pdf.
My pdf contains html text with list, wrapped in tag

import { Document } from '@react-pdf/renderer'
import Html from 'react-pdf-html'

const htmlTextWithList = <div>Datenimport gem&auml;ss vorheriger Definition</div><ul><li>Definition Importformat</li><li>Import der angelieferten Kontaktdaten f&uuml;r weiteren Einsatz in colada</li><li>Anlieferung der Daten in Excel oder CSV</li><li>Qualit&auml;t der Daten muss durch Auftraggeber sichergestellt werden</li></ul>

<Document>
...
<Html>{htmlTextWithList}</Html>
...
</Document>

As as result I have following problem. Bullets have incorrect alignment
Screenshot 2023-10-19 at 18 52 44

Browser (if applicable): Chrome Version 116.0.5845.187
React-PDF version: 3.1.12
React version: 18.2.0
Webpack version (if applicable):5.75.0
react-pdf-html version:1.1.18

Could you please assist?

@sohamsshah
Copy link

I can second this. Facing the same issue
image

@maximohneilian
Copy link

I can second this. Facing the same issue image

same for me.

Is this going to be fixed?

@BrosnanRiley
Copy link

Hi, I am using react-pdf and react-pdf-html to create a pdf. My pdf contains html text with list, wrapped in tag

import { Document } from '@react-pdf/renderer' import Html from 'react-pdf-html'

const htmlTextWithList = <div>Datenimport gem&auml;ss vorheriger Definition</div><ul><li>Definition Importformat</li><li>Import der angelieferten Kontaktdaten f&uuml;r weiteren Einsatz in colada</li><li>Anlieferung der Daten in Excel oder CSV</li><li>Qualit&auml;t der Daten muss durch Auftraggeber sichergestellt werden</li></ul>

<Document> ... <Html>{htmlTextWithList}</Html> ... </Document>

As as result I have following problem. Bullets have incorrect alignment Screenshot 2023-10-19 at 18 52 44

Browser (if applicable): Chrome Version 116.0.5845.187 React-PDF version: 3.1.12 React version: 18.2.0 Webpack version (if applicable):5.75.0 react-pdf-html version:1.1.18

Could you please assist?

Hopefully you already found a fix, but when I updated the module to 1.3.7 this had been resolved

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

4 participants