aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/FOText.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/org/apache/fop/fo/FOText.java')
-rw-r--r--src/java/org/apache/fop/fo/FOText.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fo/FOText.java b/src/java/org/apache/fop/fo/FOText.java
index 393c20871..4014e2fb8 100644
--- a/src/java/org/apache/fop/fo/FOText.java
+++ b/src/java/org/apache/fop/fo/FOText.java
@@ -31,6 +31,8 @@ import org.apache.fop.fo.properties.CommonHyphenation;
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 @@ public class FOText extends FONode {
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;