Kaydet (Commit) 18d1017b authored tarafından Ocke Janssen [oj]'s avatar Ocke Janssen [oj]

dba3h: #i114111#: reportbuilder: do not use Double.toString() when writing the…

dba3h:  #i114111#: reportbuilder: do not use Double.toString() when writing the 2  column-width attribute, it may write an exponent, which is invalid..
üst 42af84d9
...@@ -624,7 +624,9 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget ...@@ -624,7 +624,9 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
final Section tableColumnProperties = new Section(); final Section tableColumnProperties = new Section();
tableColumnProperties.setType("table-column-properties"); tableColumnProperties.setType("table-column-properties");
tableColumnProperties.setNamespace(style.getNamespace()); tableColumnProperties.setNamespace(style.getNamespace());
tableColumnProperties.setAttribute(style.getNamespace(), "column-width", columnWidth + getUnitsOfMeasure(null)); final String width = String.format("%f", columnWidth);
tableColumnProperties.setAttribute(style.getNamespace(),
"column-width", width + getUnitsOfMeasure(null));
style.addNode(tableColumnProperties); style.addNode(tableColumnProperties);
final AttributeList myAttrList = new AttributeList(); final AttributeList myAttrList = new AttributeList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment