summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorSvante Schubert <svante.schubert@gmail.com>2020-08-26 13:50:10 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-03-02 13:23:33 +0100
commitfbe545c4eeb48ec847f48afa9573d0514fc51f63 (patch)
treecaf0c3f6664508e76db4e0c17776aef912108bc7 /filter
parent9d3b39cf9fed9a305ac23d1ecaaafc8f7caaeeb0 (diff)
HTML XSLT: Appendix headings looked incorrect (in general heading within lists were missing HTML element heading number)
Change-Id: I125b095a436be3c6d9f5f64496564d63ea10a5fb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111618 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xslt/odf2xhtml/export/xhtml/body.xsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
index 53af56fa2f94..b3276a4ba358 100644
--- a/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
+++ b/filter/source/xslt/odf2xhtml/export/xhtml/body.xsl
@@ -2623,7 +2623,8 @@
<xsl:param name="listStyleName"/>
<xsl:param name="minLabelWidth"/>
- <xsl:element name="h">
+ <xsl:variable name="headingName" select="concat('h', $listLevel - 1)"/>
+ <xsl:element name="{$headingName}">
<xsl:call-template name="create-list-style">
<xsl:with-param name="globalData" select="$globalData"/>
<xsl:with-param name="listIndent" select="$listIndent"/>