I am looking at using Aspose.Words to perform an HTML to Word conversion and some of the paragraph settings don't seem correct.
If you import the following html, you get extra space between each of the lines except between Item 1, Item 2 and Item 3.
- Item 1
- Item 2
- Item 3
If you examine the paragraph formatting, each of the paragraphs representing the div elements has the "Space After Auto" attribute set to true (which inserts whitespace after the paragraph). I believe this is incorrect (it would be correct if these were p elements). If you open the html in a web browser, you won't see any extra whitespace between the divs. Furthermore, to match the behavior in a browser, the last element of the list has the "Space After Auto" set to true. I believe that the first element in the list should have "Space Before Auto" set to true instead of having the preceeding element (in this case a div) having the after auto set.
After the import, I'm not sure how to correct this. I can set the after auto values to false for all of the paragraphs, but then that will eliminate the spacing that should appear before and after the list. Any suggestions?
I'm using Aspose.Words for Java 2.4.2.