danfickle / openhtmltopdf

An HTML to PDF library for the JVM. Based on Flying Saucer and Apache PDF-BOX 2. With SVG image support. Now also with accessible PDF support (WCAG, Section 508, PDF/UA)!
https://danfickle.github.io/pdf-templates/index.html
Other
1.93k stars 360 forks source link

inline-elements do not collapse whitespace correctly #879

Open jlous opened 2 years ago

jlous commented 2 years ago

The following code should result in a single space between "hello" and "world, but in stead ends up with what looks like at least 3 spaces:

<p>
    <span>
        hello
    </span>
    <span>
        <span>
            world
        </span>
    </span>
</p>