Category: | Bug report |
Priority: | Normal |
Status: | New |
Project: | Severity: | Major |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
Summary of issue:
While working with library version 6.20 we encountered a problem when generating reports that print html via text fields.
We noticed whitespaces being printed in text fields where markup was set to html while we expect this to remove the whitespace.
We've prepared an example report called htmltest.jrxml with 3 cases to illustrate the problem. This problem does not occur in version 6.17 so the issue must have appeared somewhere between then and 6.20.
This is how we constructed the test report:
We present 3 examples of text printing.
In the left column plain text is printed as a reference.
In the middle column the text field should print html
as Markup is set to html. However, this is not the
case and the spacing still gets printed.
In the third column we show that the text field does
show expected behavior of printing html when a html
tag is added to the input of the text field. Which tag
is irrelevant, as this works with things like <b> but
also <br/> ...
This is not a workaround because we cannot simply
change the input data of our reports to always
contain some html tags, we just want the spacing
to be ignored as it should be when markup is set
to html.