Skip to content

Trailing whitespace on text-align right break #440

@AnanasPizza

Description

@AnanasPizza

I am experiencing the following problem:

I have a specific structure in my source html, file attached (pdf.html.txt), that somehow creates a trailing whitespace when using text-align: right and the text is using more than one line.

When I use that html in my implementation like in the attached example.java.txt, it will add a trailing whitespace. Shown in the wrongOutput.pdf.

When I copy the html into your line-wrap-pre-wrap test case html and run the testLineWrapPreWrap() in TextVisualRegressionTest.java it works perfectly fine, also attached. Is there anything I am doing wrong in the preprocessing of the html or the implementation?

I figured out, that some html is not accepted in your test cases, like a normal
tag, while I dont get an error using something like that in my implementation.

Attachments:

example.java.txt

pdf.html.txt

line-wrap-pre-wrap---actual.pdf

wrongOutput.pdf

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions