Browse Source

Added warning message (Bugzilla 37329)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@330307 13f79535-47bb-0310-9956-ffa450edef68
pull/34/head
Andreas L. Delmelle 18 years ago
parent
commit
2eef1037f7
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      src/java/org/apache/fop/fo/flow/TableCell.java

+ 7
- 2
src/java/org/apache/fop/fo/flow/TableCell.java View 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 ) {

Loading…
Cancel
Save