[#12696] - Incorrect break line using first line indentation

Category:
Bug report
Priority:
High
Status:
New
Project: Severity:
Critical
Resolution:
Open
Component: Reproducibility:
Always
Assigned to:

When first line indent is used on a paragraph there is a bug and the line is breaking badly as you can see on attachments.
I'm using html markup and a JSON adapter

This is the Jasper Report XML:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.12.2.final using JasperReports Library version 6.12.2-75c5e90a222ab406e416cbf590a5397028a52de3 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="bullets" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="38c2c40d-00c8-4064-bcd7-6b56acb091c6">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="bulletsAdapter.xml"/>
<queryString>
<![CDATA[]]>
</queryString>
<field name="text" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<detail>
<band height="125" splitType="Stretch">
<textField textAdjust="StretchHeight">
<reportElement positionType="Float" x="0" y="10" width="410" height="20" uuid="438f76fd-ce07-442b-838d-cca0e29d1d6e">
<property name="com.jaspersoft.studio.unit.firstLineIndent" value="px"/>
</reportElement>
<box leftPadding="23"/>
<textElement textAlignment="Justified" markup="html">
<font fontName="Arial" size="8"/>
<paragraph firstLineIndent="23"/>
</textElement>
<textFieldExpression><![CDATA[$F{text}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>

And the json with text:

{
"text": "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ipsum purus, pulvinar in lacinia vel, aliquam vitae ante. Proin vel nulla vitae ex interdum finibus sed eu sapien. Mauris faucibus, turpis eget porttito ex: </p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent ipsum purus, pulvinar in lacinia vel, aliquam vitae ante. Proin vel nulla vitae ex interdum finibus sed eu sapien. Mauris faucibus, turpis eget porttitor condimentum.</p>"
}

AttachmentSize
PDF icon report1142093033014314173.pdf2.63 KB
v6.12.2
alvaro.abella's picture
Joined: Oct 16 2019 - 5:38am
Last seen: 2 years 1 month ago

1 Comment:

#1
  • Severity:Minor» Critical
Feedback
randomness