You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/07/18 12:51:49 UTC

svn commit: r219464 - /xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java

Author: jeremias
Date: Mon Jul 18 03:51:00 2005
New Revision: 219464

URL: http://svn.apache.org/viewcvs?rev=219464&view=rev
Log:
No more warnings about unexpected FOText inside markers.

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java?rev=219464&r1=219463&r2=219464&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/FOText.java Mon Jul 18 03:51:00 2005
@@ -31,6 +31,8 @@
 import org.apache.fop.fo.properties.CommonTextDecoration;
 import org.apache.fop.fo.properties.Property;
 import org.apache.fop.fo.properties.SpaceProperty;
+
+// SAX
 import org.xml.sax.Locator;
 
 /**
@@ -214,8 +216,11 @@
             ancestorFONode = ancestorFONode.parent;
             if (ancestorFONode instanceof org.apache.fop.fo.pagination.Title) {
                 return;
+            } else if (ancestorFONode instanceof org.apache.fop.fo.flow.Marker) {
+                return;
             } else if (ancestorFONode instanceof Root) {
-                getLogger().warn("Unexpected: fo:text with no fo:block ancestor");
+                getLogger().warn("Unexpected: fo:text with no fo:block ancestor. The text is: " 
+                        + new String(ca));
                 return;
             } else if (ancestorFONode instanceof Block) {
                 this.ancestorBlock = (Block)ancestorFONode;



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org