I have a Jasper report which uses HTML markup tag to display the li tag list. However, it seems that even with the latest version of the Jasper report, it still cannot do the hanging indent correctly.
This is what I want:
- TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST
- test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
This is what I get:
* TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST
* test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test
I have this in the jrxml:
<detail>
<band height="20" isSplitAllowed="true" >
<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
mode="Transparent"
x="32"
y="2"
width="458"
height="16"
forecolor="#000000"
backcolor="#FFFFFF"
key="textField"
stretchType="RelativeToTallestObject"
isPrintWhenDetailOverflows="true"/>
<box></box>
<textElement markup="html" lineSpacing="Single">
<font fontName="Arial" pdfFontName="Helvetica" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" />
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{message}]]></textFieldExpression>
</textField>
</band>
</detail>
I have this in the message variable:
<ul><li>TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST<ul><li>test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test </li></ul></li></ul>
Any idea how I can have those bullets having hanging indented?
Thank you, Michael