From 9962f56963e02e557c17dbb05a71e7d610f20629 Mon Sep 17 00:00:00 2001 From: Peter Herweg Date: Sun, 12 Feb 2006 22:31:02 +0000 Subject: [PATCH] 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 --- .../fop/render/rtf/rtflib/rtfdoc/RtfListStyleText.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.39.5