Skip to content

Whitespace is trimmed from text elements #117

@EvHaus

Description

@EvHaus

Given this HTML:

<p><b>a </b>b</p>

react-pdf-html produces ab in the PDF, but it should produce a b.

I think is happening due to ltrim and rtrim calls in renderBucketElement (code).

I can work on a PR that removes those trims, but I'm sure they were placed there for a reason. Was it needed to support some other condition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions