Good day.
When i tried to convert the word to HTML using aspose, bullets and numbering are converting as ‘<p>’ tag instead of ‘<li>’, its totally affects the document alignment. can you please help me regarding this. Herewith i attached a sample document for your reference. Waiting for your reply.
Thanks for your inquiry. We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-17097. We will further look into the details of this problem and will keep you updated on the status of this issue. We apologize for your inconvenience.
Regarding WORDSNET-17097, we have completed the analysis of this issue. The problem occurs because, list markers like “a)” are not representable in CSS , because here is no corresponding “list-style-type” in CSS 2.1. You will get better results if you instruct Aspose.Words to export list items as normal paragraphs, not as <li> elements. Please tell us what are the alignment problems you are having with default ExportListLables settings? Maybe we could resolve the issue by improving export of list items to <p> elements.
We will most likely consider making list styles like “a)” representable with <li> elements by emulating such styles with “::before” pseudo-classes. Or we will wait until the CSS 3 feature “@counter-style” receives widespread support. For now, we are going to postpone this enhancement issue.