summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Antoni Buj Gelonch <robert.buj@gmail.com>2015-05-14 20:02:39 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-05-15 11:58:08 +0000
commit1ab97fe7a244d091def863a1279e67394167144a (patch)
tree367b44e491c4ccf94e6974222c3bbc65dc7b96bc
parent4cedf7c2a1a7661d95ecca572ca24382e54dbe7d (diff)
odf2xhtml: tdf#66305 do not display the page numbers in TOC
Change-Id: I480f8f2c7fcc8e0c9d2ecc0c370284821633c45d Reviewed-on: https://gerrit.libreoffice.org/15734 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--filter/source/xslt/odf2xhtml/export/xhtml/body.xsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 59a662aba03f..e86225bac3a3 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -430,6 +430,13 @@
</xsl:apply-templates>
</xsl:element>
</xsl:when>
+ <xsl:when test="text:tab and text:a and ancestor::text:index-body">
+ <xsl:element name="p">
+ <xsl:apply-templates select="attribute::* | child::text:a">
+ <xsl:with-param name="globalData" select="$globalData" />
+ </xsl:apply-templates>
+ </xsl:element>
+ </xsl:when>
<xsl:otherwise>
<xsl:choose>
<!-- !!Check if paragraph is empty!!