itext - can BR tag work inside TD with XmlWorker? -
<td>text text text</br>text text<td>
is legitimate html - throws error xmlworker 5.5.5 , itext 5.5.5
com.itextpdf.tool.xml.exceptions.runtimeworkerexception: invalid nested tag br found, expected closing tag td.
if remove 'br' code works, of course not multiline row
this not fixed using white-space:pre in td css, , converting 'br' carriage return, new line ignored itext
is feature/ issue/ never been asked before thing? or missing not in examples?
html file... link
this invalid xhtml:
<td>text text text</br>text text<td>
this valid xhtml:
<td>text text text<br />text text<td>
please change </br>
<br />
. because when xml parser encounters closing tag </br>
without having encountered opening tag <br>
first, throw exception because xml invalid.
note <br />
shorthand <br></br>
(an opening tag followed closing tag).
Comments
Post a Comment