Ticket #843 (new Bug)

Opened 2 years ago

empty markup tags cause failed pdf generation

Reported by: tb@… Owned by: somebody
Priority: Major Milestone:
Component: Frontend - publishing engine Version: 2.4
Keywords: pdf generation markup <strong> Cc:

Description

We recently upgraded on of our daisy instances to daisy 2.4.1.

There was a problem with publishing a book, which i tracked down to one document containing and empty <strong></strong> tag. This tag is not removed by the html cleanup function, so it stays in the text, and isn't visible in the graphical editor. When present in a document, pdf generation (both of the single page, and of a book containig the page) fails with the following error:

Failed to process pipeline
javax.xml.transform.TransformerException: java.lang.IllegalArgumentException: factor < 0; was: -1
java.lang.IllegalArgumentException: factor < 0; was: -1
factor < 0; was: -1

If the problem occurs during the publishing of a book, it's not easy to find out which page caused the problem.

We are using the default daisy skin and publishing type, so this should be easy to reproduce with any daisy 2.4 instance. Just create a document with a line of text, switch to html view and add <strong></strong> in there somewhere. Save and load the pdf version of the page.

Note: See TracTickets for help on using tickets.