Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractCalculationExportableResult.java @ 9314:49c0b687d22f
Fixed: some texts, such as "<MNQ", not visible in pdf export and in result table.
author | gernotbelger |
---|---|
date | Thu, 26 Jul 2018 16:31:35 +0200 |
parents | a4121ec450d6 |
children | 5f81d3f7b82b |
comparison
equal
deleted
inserted
replaced
9313:6ffcbb4f35d5 | 9314:49c0b687d22f |
---|---|
10 package org.dive4elements.river.artifacts.common; | 10 package org.dive4elements.river.artifacts.common; |
11 | 11 |
12 import java.util.Collection; | 12 import java.util.Collection; |
13 | 13 |
14 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; | 14 import org.dive4elements.river.artifacts.sinfo.util.RiverInfo; |
15 | |
16 import com.lowagie.text.html.HtmlEncoder; | |
15 | 17 |
16 import net.sf.jasperreports.engine.JRException; | 18 import net.sf.jasperreports.engine.JRException; |
17 | 19 |
18 /** | 20 /** |
19 * @author Domenico Nardi Tironi | 21 * @author Domenico Nardi Tironi |
70 final Collection<ResultRow> rows = getRows(); | 72 final Collection<ResultRow> rows = getRows(); |
71 | 73 |
72 for (final ResultRow row : rows) { | 74 for (final ResultRow row : rows) { |
73 | 75 |
74 final String[] formattedRow = formatPDFRow(exportContext, row); | 76 final String[] formattedRow = formatPDFRow(exportContext, row); |
75 source.addData(formattedRow); | 77 |
78 final String[] encodedRow = new String[formattedRow.length]; | |
79 for (int i = 0; i < encodedRow.length; i++) { | |
80 encodedRow[i] = HtmlEncoder.encode(formattedRow[i]); | |
81 } | |
82 | |
83 source.addData(encodedRow); | |
76 } | 84 } |
77 } | 85 } |
78 } | 86 } |