diff options
author | Peter Herweg <pherweg@apache.org> | 2004-01-27 17:33:27 +0000 |
---|---|---|
committer | Peter Herweg <pherweg@apache.org> | 2004-01-27 17:33:27 +0000 |
commit | 5bcd5f1f2f587405256da3ffb4f645f6e83d070a (patch) | |
tree | 8ed7726a7d86cf2ffc35ea39d5f12ace632abd2e /src | |
parent | 59b4a8a44c77fef68b450a581ae8f66d0a7133c7 (diff) | |
download | xmlgraphics-fop-5bcd5f1f2f587405256da3ffb4f645f6e83d070a.tar.gz xmlgraphics-fop-5bcd5f1f2f587405256da3ffb4f645f6e83d070a.zip |
Removed call of JFOR's WhiteSpaceCollapser; now this is done by FOP
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197275 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r-- | src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java | 7 | ||||
-rw-r--r-- | src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java | 15 |
2 files changed, 4 insertions, 18 deletions
diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java index 878542c83..8eb6658cc 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java @@ -136,13 +136,6 @@ implements IRtfTextContainer, IRtfPageBreakContainer, IRtfHyperLinkContainer, * @throws IOException for I/O problems */ protected void writeRtfPrefix() throws IOException { - // collapse whitespace before writing out - // TODO could be made configurable - if (attrib != null && attrib.isSet("WhiteSpaceFalse")) { - attrib.unset("WhiteSpaceFalse"); - } else { - new WhitespaceCollapser(this); - } //Reset paragraph properties if needed if (resetProperties) { diff --git a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java index 79f71dcb0..ebb5f883f 100644 --- a/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java +++ b/src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java @@ -228,19 +228,12 @@ public class RtfTextrun extends RtfContainer { */ protected void writeRtfContent() throws IOException { /** - *TODO: The textrun's children are iterated threetimes: - * 1. In WhitespaceCollapser - * 2. To determine the last RtfParagraphBreak - * 3. To write the children + *TODO: The textrun's children are iterated twice: + * 1. To determine the last RtfParagraphBreak + * 2. To write the children * Maybe this can be done more efficient. */ - - if (attrib != null && attrib.isSet("WhiteSpaceFalse")) { - attrib.unset("WhiteSpaceFalse"); - } else { - new WhitespaceCollapser(this); - } - + //determine, if this RtfTextrun is the last child of its parent boolean bLast = false; for (Iterator it = parent.getChildren().iterator(); it.hasNext();) { |