From: Andreas L. Delmelle Date: Wed, 2 Nov 2005 18:33:57 +0000 (+0000) Subject: Added warning message (Bugzilla 37329) X-Git-Tag: fop-0_90-alpha1~90 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb14decc6d5b6cfd911ac8e2660763602cf19d65;p=xmlgraphics-fop.git Added warning message (Bugzilla 37329) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330307 13f79535-47bb-0310-9956-ffa450edef68 --- 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 ) {