]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
RTF: length of leveltext has to be specified as two-digit hex-value
authorPeter Herweg <pherweg@apache.org>
Sun, 12 Feb 2006 22:31:02 +0000 (22:31 +0000)
committerPeter Herweg <pherweg@apache.org>
Sun, 12 Feb 2006 22:31:02 +0000 (22:31 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@377256 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java

index e81115b6f140fc8936e8be93372439046f252b34..230f2e7e64ce637f260072bed8997fa4b68acb92 100644 (file)
@@ -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);