diff options
Diffstat (limited to 'src/java')
-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 ) { |