[#12616] - Underlined Tabs

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>

v6.1.0
steffen.schroeder's picture
Joined: Dec 19 2013 - 2:49am
Last seen: 6 months 2 days ago

1 Comment:

#1
  • Status:New» Acknowledged
  • Assigned:nobody» teodord
Feedback