diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-05-17 00:13:18 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2017-05-30 10:19:45 +0200 |
commit | ba54eb5f01a84ffb4dc72d11d7a8dd6572dd5a5f (patch) | |
tree | 39a86e74bd1b6db880cd8ded49a07f89dc0e6e70 /filter | |
parent | d3c63ec1b1eb2d02902fe7086e061f2ef6c6fc7b (diff) |
Related tdf#107696: deal with non empty header without number
See first case of https://bugs.documentfoundation.org/show_bug.cgi?id=107696#c11
Change-Id: Ic76301cb10ae891901be7dd5a385356c1cc0523b
Reviewed-on: https://gerrit.libreoffice.org/37694
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
(cherry picked from commit 296c2296f5565556eea9fab51563050f28bbcafc)
Reviewed-on: https://gerrit.libreoffice.org/37792
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
(cherry picked from commit 6ee4771aff5d756f45014b88aebbcfb25b5cadfe)
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/xhtml/body.xsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl index a8edf4b14167..34bb181db569 100644 --- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl @@ -1222,7 +1222,7 @@ <!-- writing out a heading number if desired.--> <!-- if a corresponding 'text:outline-style' exist or is not empty --> <xsl:choose> - <xsl:when test="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = current()/@text:outline-level]/@style:num-format != ''"> + <xsl:when test="$globalData/office:styles/text:outline-style/text:outline-level-style[@text:level = current()/@text:outline-level]/@style:num-format != '' and not(@text:is-list-header='true')"> <!-- Every heading element will get an unique anchor for its file, from its hiearchy level and name: For example: The heading title 'My favorite heading' might get <a name="1_2_2_My_favorite_heading" /> --> |