diff options
author | Andreas L. Delmelle <adelmelle@apache.org> | 2005-11-02 18:33:57 +0000 |
---|---|---|
committer | Andreas L. Delmelle <adelmelle@apache.org> | 2005-11-02 18:33:57 +0000 |
commit | eb14decc6d5b6cfd911ac8e2660763602cf19d65 (patch) | |
tree | c0108e1bba522ffc2b7f0753836e6e441e6adbf9 /src/java/org/apache/fop | |
parent | 440cbd944f8014e2f36a63b7640c00fc70ed5b52 (diff) | |
download | xmlgraphics-fop-eb14decc6d5b6cfd911ac8e2660763602cf19d65.tar.gz xmlgraphics-fop-eb14decc6d5b6cfd911ac8e2660763602cf19d65.zip |
Added warning message (Bugzilla 37329)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/TableCell.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/fo/flow/TableCell.java b/src/java/org/apache/fop/fo/flow/TableCell.java index acab06dad..636f69ede 100644 --- a/src/java/org/apache/fop/fo/flow/TableCell.java +++ b/src/java/org/apache/fop/fo/flow/TableCell.java @@ -168,8 +168,13 @@ public class TableCell extends TableFObj { * @see org.apache.fop.fo.FONode#endOfNode */ protected void endOfNode() throws FOPException { - if (!blockItemFound && getUserAgent().validateStrictly()) { - missingChildElementError("marker* (%block;)+"); + if (!blockItemFound) { + if (getUserAgent().validateStrictly()) { + missingChildElementError("marker* (%block;)+"); + } else if (childNodes.size() > 0) { + getLogger().warn("fo:table-cell content that is not enclosed by a " + + "fo:block will be dropped/ignored."); + } } if ((startsRow() || endsRow()) && getParent().getNameId() == FO_TABLE_ROW ) { |