From: Peter Herweg Date: Sun, 12 Feb 2006 22:31:02 +0000 (+0000) Subject: RTF: length of leveltext has to be specified as two-digit hex-value X-Git-Tag: fop-0_92-beta~127 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9962f56963e02e557c17dbb05a71e7d610f20629;p=xmlgraphics-fop.git RTF: length of leveltext has to be specified as two-digit hex-value git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377256 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java index e81115b6f..230f2e7e6 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java @@ -97,7 +97,10 @@ public class RtfListStyleText extends RtfListStyle { if (text.length() < 10) { sCount = "0" + String.valueOf(text.length()); } else { - sCount = String.valueOf(text.length()); + sCount = String.valueOf(Integer.toHexString(text.length())); + if (sCount.length() == 1) { + sCount = "0" + sCount; + } } element.writeOneAttributeNS( RtfListTable.LIST_TEXT_FORM, "\\'" + sCount + text);