Category: | Bug report |
Priority: | Normal |
Status: | Acknowledged |
Project: | Severity: | Minor |
Resolution: | Open |
|
Component: | Reproducibility: | Always |
Assigned to: |
have lots of RTF coded texts from a database. Some of them are used to build a simple table of keys and their values. Tabs are used to let all the values begin in the same column. When a complete line is underlined in RTF, in Jasper generated PDF file the space is not underlined. Example:
{\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fnil\fcharset0 Arial Unicode MS;}}
\viewkind4\uc1\pard\f0\fs20 key1\tab value1\par
key2\tab value2\par
\ul key3\tab value3\ulnone\par
\ul\par
}
The same happens with a simple Text field containing a tab and isUnderline=true.
It is because AbstractTextRenderer.render() splits all the input at the "\t"
<textField>
<reportElement positionType="Float" x="0" y="0" width="510" height="15" isRemoveLineWhenBlank="true" uuid="522af4a4-d0bd-49c0-9c88-0197620bf3ca"/>
<textElement markup="none">
<font isUnderline="true"/>
</textElement>
<textFieldExpression><![CDATA["Text Field""]]></textFieldExpression>
</textField>
1 Comment: