convert-to HTML creates terribly invalid HTML

Hi All,

Hope you can help me. I’m loving the /soffice —invisible —convert-to HTML command line tool, but I’ve noticed the output is very bad HTML, especially with list items:

<ol><li/><p style="margin-bottom: 0.14in; line-height: 115%">Aaa</p></ol>

I’m sure you can see this is malformed HTML and causing me problems when trying to edit it online, or validate it, etc. Are there some command line arguments or options to tidy up this HTML?

Thanks in advance!
Seb

Does --convert-to html:"XHTML Writer File" improve the output validity?

I used this command to convert docx file to HTML
export HOME=/tmp && /tmp/lo/instdir/program/soffice.bin --headless --norestore --invisible --nodefault --nofirststartwizard --nolockcheck --nologo --convert-to html:HTML --outdir /tmp /tmp/TEst.docx

but the generated file has undefined as body…

@page { size: 8.5in 11in; margin: 0.79in } p { margin-bottom: 0.1in; line-height: 115%; background: transparent } pre { font-family: "Liberation Mono", monospace; font-size: 10pt; background: transparent }
undefined

the content in the docx file was just “smita test”