plutext / docx4j-ImportXHTML

Converts XHTML to OpenXML WordML (docx) using docx4j
136 stars 125 forks source link

Quick and Dirty fix of the Nullpointer Exception when calling li tags… #89

Open ChristophKronberger opened 2 years ago

ChristophKronberger commented 2 years ago

… without ol or ul container. Since I encountered the same problem as https://github.com/plutext/docx4j-ImportXHTML/issues/21 I changed the list helper so that when the .peek() returns null a new standard object is created.

This means that the li tags are not handled, but the null pointer is avoided.

ChristophKronberger commented 2 years ago

I also added a convert Method in XHTML importer, witch takes a TargetPart to add Images in Header or Footer