I use the following options to handle the CSS -> Word style mapping during the XHTML import
- Code: Select all
xHTMLImporter.setTableFormatting(FormattingOption.CLASS_PLUS_OTHER);
xHTMLImporter.setParagraphFormatting(FormattingOption.CLASS_TO_STYLE_ONLY);
xHTMLImporter.setRunFormatting(FormattingOption.CLASS_PLUS_OTHER);
But if I use these options, any type of list within the HTML which I pass to the XHTMLImporter is not shown in the Word document anymore. What can I do about it. I tried to define a style for my lists, but that does not work either. For example:
<ul ...