]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added warning message (Bugzilla 37329)
authorAndreas L. Delmelle <adelmelle@apache.org>
Wed, 2 Nov 2005 18:33:57 +0000 (18:33 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Wed, 2 Nov 2005 18:33:57 +0000 (18:33 +0000)
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

index acab06dad0f00f5dba9b8393b5a4cff5587ab9d6..636f69ede86a7c80ff1876aae062600ac4a30e12 100644 (file)
@@ -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 ) {