You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2017/10/09 23:49:57 UTC

svn commit: r1811627 - /maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java

Author: hboutemy
Date: Mon Oct  9 23:49:57 2017
New Revision: 1811627

URL: http://svn.apache.org/viewvc?rev=1811627&view=rev
Log:
[MPDF-48] fixed third (last) cause of failing reports: XdocSink does not handle case where tableRow() is called without tableRows()

Modified:
    maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java

Modified: maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java?rev=1811627&r1=1811626&r2=1811627&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java (original)
+++ maven/plugins/trunk/maven-pdf-plugin/src/main/java/org/apache/maven/plugins/pdf/PdfMojo.java Mon Oct  9 23:49:57 2017
@@ -1546,6 +1546,16 @@ public class PdfMojo
             // workaround to fix quotes introduced with MPIR-59 (then removed in MPIR-136)
             super.text( StringUtils.replace( text, "\u0092", "'" ) );
         }
+
+        public void tableRow()
+        {
+            // To be backward compatible: TODO add to XdocSink
+            if ( !this.tableRows )
+            {
+                tableRows( null, false );
+            }
+            super.tableRow( null );
+        }
     }
 
     /**