Command line convert-to of docx to html is not setting href to anchor for hyperlinks or toc links

asked 2015-11-10 17:09:33 +0100

W. Scott Meeks gravatar image

updated 2016-03-14 18:48:12 +0100

Alex Kemp gravatar image

I'm using LiberOffice on MacOS 10.10.4.

I'm using "soffice --convert-to html" on a .docx that contains a table of contents based on headings. The anchor tags for the headings are being generated correctly, e.g. <h1><a name="_Toc86654568">Introduction</h1>. However, the links in the table of contents are not: <a href=" "><b>Introduction 1</b></a>.

I've also tried using explicit bookmarks and explicit hyperlinks and I see the same problem. The bookmarks are correctly being converted to named anchors, but the generated hyperlinks do not contain the #name in the href. Am I doing something wrong? Is this a known bug?

edit retag flag offensive close merge delete


Rather than tell us what it is not, please tell us what it is.

Alex Kemp gravatar imageAlex Kemp ( 2016-03-14 18:49:00 +0100 )edit