Skip to content

.continued:before makes Errors #461

Description

@moccand

juste adding this in the HTML styles :

.continued:before {
    /**
     * For repeated table headers (<thead> elements), show " - Continued"
     * before each table header repeat on subsequent (not initial) pages.
     * See https://github.com/danfickle/openhtmltopdf/pull/32
     */
    content: " - Continued";
    visibility: -fs-table-paginate-repeated-visible;
}

makes an error :

com.openhtmltopdf.load INFO:: SAX XMLReader in use (parser): com.sun.org.apache.xerces.internal.parsers.SAXParser
com.openhtmltopdf.load INFO:: SAX XMLReader in use (parser): com.sun.org.apache.xerces.internal.parsers.SAXParser
com.openhtmltopdf.load INFO:: Le type d'ÚlÚment "thead" doit se terminer par la balise de fin correspondante "</thead>".
ERROR:  'Le type d'élément "thead" doit se terminer par la balise de fin correspondante "</thead>".'
com.openhtmltopdf.exception WARNING:: Unhandled exception. Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException; lineNumber: 277; columnNumber: 5; Le type d'ÚlÚment "thead" doit se terminer par la balise de fin correspondante "</thead>".
com.openhtmltopdf.util.XRRuntimeException: Can't load the XML resource (using TRaX transformer). org.xml.sax.SAXParseException; lineNumber: 277; columnNumber: 5; Le type d'élément "thead" doit se terminer par la balise de fin correspondante "</thead>".
        at com.openhtmltopdf.resource.XMLResource$XMLResourceBuilder.createXMLResource(XMLResource.java:274)
        at com.openhtmltopdf.resource.XMLResource$XMLResourceBuilder.access$100(XMLResource.java:168)
        at com.openhtmltopdf.resource.XMLResource.load(XMLResource.java:81)
        at com.openhtmltopdf.pdfboxout.PdfBoxRenderer.setDocumentFromStringP(PdfBoxRenderer.java:293)
        at com.openhtmltopdf.pdfboxout.PdfBoxRenderer.<init>(PdfBoxRenderer.java:235)
        at com.openhtmltopdf.pdfboxout.PdfRendererBuilder.buildPdfRenderer(PdfRendererBuilder.java:63)
        at com.openhtmltopdf.pdfboxout.PdfRendererBuilder.run(PdfRendererBuilder.java:39)


The class is not used yet in the HTML page Tables.
I already have this style workin before addint the 'continued'

table {
   -fs-table-paginate: paginate;
}

Some of my Tables (the short and simple ones) don't have Header and Footers.
The tables that should be paginated are mostly nested ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions