react-pdf-html icon indicating copy to clipboard operation
react-pdf-html copied to clipboard

white-space style doesn't work

Open jagadyudha opened this issue 2 years ago • 2 comments

style white-space: pre-wrap doesn't work

This is what i want: image

But the spaces are gone when it is converted to a pdf: image

jagadyudha avatar Jan 10 '23 01:01 jagadyudha

Good catch. White space support is limited right now, with some work done to support the pre tag. The next step would be to do a more thorough dive into the different style values and make sure that each one has been implemented.

danomatic avatar Jan 11 '23 20:01 danomatic

Hey @danomatic , we'd love to either have white-space: pre or being able to have elements such as <pre><span>...</span></pre> work. Right now <pre> is wrongly implemented to render inner elements as raw text.

JorgeAtPaladin avatar May 06 '24 13:05 JorgeAtPaladin