[Libreoffice-commits] core.git: filter/source

Julien Nabet serval2412 at yahoo.fr
Tue May 16 22:15:37 UTC 2017


 filter/source/xslt/odf2xhtml/export/xhtml/body.xsl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 296c2296f5565556eea9fab51563050f28bbcafc
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed May 17 00:13:18 2017 +0200

    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 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 03d4a8fce087..823d048254c5 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" /> -->


More information about the Libreoffice-commits mailing list