Hi,
I’m using Aspose.Words to pull the HTML from a document in order to display and edit it on a webpage(in freetextbox).
We’re having trouble with numbered lists - they are not always coming out correctly. Attached is a sample document(list1.doc) as well as the html(htmlpage1.htm) which was pulled using the following C#/Aspose function.
String ret;
using (MemoryStream stream = new MemoryStream())
{
ThisDocument.Save(stream, SaveFormat.Html);
ret = Encoding.UTF8.GetString(stream.GetBuffer(), 0, (int)stream.Length);
}
return ret;
If you take a look at the html, you’ll see how some of the numbered lists are pulled as plain text. When saved this saves in plain text and isn’t a list anymore.
Some of them are pulled as
's. However those, when saved it puts in extra space after each number and ends up with the beginning of the text being pushed to the middle of the page.
ex: original document:
- Abc
after edit:
- Abc
How can I get a regular number list that will keep the formatting correct?