[Bug 89290] HTML export: replace tabulator characters with double spaces or ellipses (three dot leader) in Table of Contents

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 11 17:34:35 UTC 2016


--- Comment #12 from Martin Nathansen <marsianer at gmail.com> ---
Meanwhile I found the reason why the page numbers in the table of content  are
not exported when the document was originally created by LO Writer and why it
is exported from OO Writer documents.

The difference between both Writer documents are the links in the LO Writer
Table of Content. The OO Table of Content has no such links:

LO Writer Table of Content::
<text:p text:style-name="P4"><text:a xlink:type="simple"
xlink:href="#__RefHeading___Toc164_1531117683" text:style-name="Index_20_Link"

OO Writer Table of Content:
<text:p text:style-name="P3">Heading1<text:tab/>1</text:p>

Because of this difference there are different XSL templates for the XHTML
transformation chosen. The selector between both templates is in 
Modul_filter/source/xslt/odf2xhtml/export/common/table_of_content.xsl - Line 
<xsl:when test="parent::table-of-content and */text:tab[1] or */*/text:tab[1]">

For the LO Writer Table of Content the template "createIndexBodyTable" is
applied and this template seems to be unfinished. When disabling the selector
for this template the LO Table of Content is transformed in the same way like
the OO Table of Content.

So there are two options to continue with the EasyHack:

1) Fixing the bug in the XSL template "createIndexBodyTable" and improving the
HTML table created by this template.

2) Implementing a new XSL template which exports HTML paragraphs (instead of a
HTML table) and realizing the formatting similar to the HTML4 formatting in

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20160211/1d6dff03/attachment-0001.html>

More information about the LibreOffice mailing list