Doc to HTML lists Auto or as HTML tags issue and inline CSS

Hi, in July 2023 you added some changes in Apose Words related to saving lists to HTML. Currently if you convert Word doc with non-standard list you will add a class attribute to ol/ul tag and list label will be generated via CSS.
The issue is that if you set Inline CSS and lists as Auto or as HTML tags then you’ll generate an extra <style> tag in <head> which is not an inline CSS.

Some of our clients were not happy with this change. Is there any way to roll back the Auto list option to the way it was before July 2023 and keep the current solution only for the list As HTML tags? Or maybe add another list option like AutoLegacy that would convert the way it was before July?

https://reference.aspose.com/words/net/aspose.words.saving/exportlistlabels/

Please convert the attached Word docx file to HTML with inline CSS.
lists_example.docx (41.1 KB)
You can see this < style > tag in this converted HTML output file:
lists_example.zip (1.8 KB)

Thanks,
Brian

@leftofcentre
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): WORDSNET-25924

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@leftofcentre We have completed analyzing the issue and concluded it is not a bug. Recently we added support for ::before pseudo markers that have counter styles other than decimal, so some lists in your document, which previously were exported with inline markers, are now exported with ::before pseudo markers, and embedded CSS styles are added to output HTML document.
The easiest way to get rid of embedded styles is to export to HTML with HtmlSaveOptions.ExportListLabels option set to ExportListLabels.AsInlineText value.

Yes, it’s not a big issue. Thanks for replying.

1 Like