]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Applied white-space handling to leaders as well...
authorAndreas L. Delmelle <adelmelle@apache.org>
Fri, 30 Dec 2005 18:58:39 +0000 (18:58 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Fri, 30 Dec 2005 18:58:39 +0000 (18:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@360142 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FObjMixed.java

index b52cb9d038212b137ad15a11bdd3d91b2c41f994..d26dc6653329bf4efa3a46caae76b909f9fb0ebf 100644 (file)
@@ -57,10 +57,8 @@ public abstract class FObjMixed extends FObj {
     /** @see org.apache.fop.fo.FONode#endOfNode() */
     protected void endOfNode() throws FOPException {
         flushText();
-        if (getNameId() != FO_LEADER) {
-            getFOEventHandler().whiteSpaceHandler
-                .handleWhiteSpace(this, currentTextNode);
-        }
+        getFOEventHandler().whiteSpaceHandler
+            .handleWhiteSpace(this, currentTextNode);
         super.endOfNode();
     }
 
@@ -88,7 +86,7 @@ public abstract class FObjMixed extends FObj {
             if (currentTextNode == null) {
                 currentTextNode = child;
             }
-        } else if (getNameId() != FO_LEADER) {
+        } else {
             // handle white-space for all text up to here
             getFOEventHandler().whiteSpaceHandler
                 .handleWhiteSpace(this, currentTextNode, child);