From eb14decc6d5b6cfd911ac8e2660763602cf19d65 Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Wed, 2 Nov 2005 18:33:57 +0000 Subject: Added warning message (Bugzilla 37329) git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330307 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/TableCell.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/java') 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 ) { -- cgit v1.2.3