我正在将 iReport 设计的模板导出为 HTML,当在电子邮件中呈现为正文时,它会显示额外的行空间,如下所示
Option 1: Delivery in Evening (17:00-21:00).
选项 2:周六交货。
如何防止行空格,使其如下所示
Option 1: Delivery in Evening (17:00-21:00).
Option 2: Delivery on Saturday.
仅当从 java 导出到 HTML 时才会发生这种情况。PDF导出没问题。提前感谢任何帮助和感谢。
这是我的 JRXML:
<?xml version="1.0" encoding="UTF-8"?>
<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="PreAlert" language="groovy" pageWidth="595" pageHeight="842" whenNoDataType="AllSectionsNoDetail" columnWidth="591" leftMargin="2" rightMargin="2" topMargin="5" bottomMargin="5" isIgnorePagination="true" uuid="59a0a3f5-2869-4b8b-8aae-a29eb50ecc64">
<queryString>
<![CDATA[]]>
</queryString>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="790" splitType="Prevent">
<staticText>
<reportElement uuid="7e37eeb2-c2c2-40cb-94f1-585663f21321" x="34" y="73" width="500" height="17" isRemoveLineWhenBlank="true"/>
<textElement>
<font fontName="SansSerif" size="11" isBold="false" pdfEncoding="Identity-H"/>
</textElement>
<text><![CDATA[Option 2: Delivery on Saturday]]></text>
</staticText>
<staticText>
<reportElement uuid="0533379c-19e6-47e0-8dcc-14cbb9d1798e" x="34" y="54" width="500" height="17" isRemoveLineWhenBlank="true"/>
<textElement>
<font fontName="SansSerif" size="11" isBold="false" pdfEncoding="Identity-H"/>
</textElement>
<text><![CDATA[Option 1: Delivery in Evening (17:00-21:00).]]></text>
</staticText>
<line>
<reportElement uuid="09813fb9-7535-47da-83df-10b5ca5d174b" positionType="Float" x="15" y="26" width="540" height="1"/>
</line>
</band>
</title>
</jasperReport>