filter/source/xslt/odf2xhtml/export/common/body.xsl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 3eb870f0843a00042ca7dd89837fbe0cc6f918c2 Author: Noel <noel.gran...@collabora.co.uk> AuthorDate: Fri Feb 26 12:45:19 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Tue Mar 2 17:32:22 2021 +0100 fix xhtml list export in other locales where other locales will have lists with ',' instead of '.' which generates an invalid HTML margin-width value Change-Id: I30ec6f88140ba1187f7c30b697dfe82055b2e25c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111604 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/filter/source/xslt/odf2xhtml/export/common/body.xsl b/filter/source/xslt/odf2xhtml/export/common/body.xsl index 9bc022e38d62..9b10e56187bf 100644 --- a/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -105,7 +105,8 @@ <!-- line breaks in lists need an indent similar to the list label --> <xsl:if test="$listIndent"> <xsl:element namespace="{$namespace}" name="span"> - <xsl:attribute name="style">margin-left:<xsl:value-of select="$listIndent"/>cm</xsl:attribute> + <!-- some locales use , instead of . so replace it --> + <xsl:attribute name="style">margin-left:<xsl:value-of select="replace($listIndent, ',', '.')"/>cm</xsl:attribute> </xsl:element> </xsl:if> </xsl:template> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits