]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Removed call of JFOR's WhiteSpaceCollapser; now this is done by FOP
authorPeter Herweg <pherweg@apache.org>
Tue, 27 Jan 2004 17:33:27 +0000 (17:33 +0000)
committerPeter Herweg <pherweg@apache.org>
Tue, 27 Jan 2004 17:33:27 +0000 (17:33 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197275 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfParagraph.java
src/java/org/apache/fop/render/rtf/rtflib/rtfdoc/RtfTextrun.java

index 878542c835604acc181db1e528c986326fdfa8b2..8eb6658cc963fccd4e1768e3640ef4e3ed52badc 100644 (file)
@@ -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) {
index 79f71dcb03c157014300341d3088586a0236b9d6..ebb5f883f48958c52e23520d9b9e2a9c4ab42a9e 100644 (file)
@@ -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();) {