filter/source/xslt/odf2xhtml/export/common/body.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6c747ccf6cbfe0dc5d591f8ce68a1ca6c63cde53 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Oct 29 14:31:19 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sat Oct 30 07:45:21 2021 +0200 tdf#145361 fix XSLT for older libxslt regression from commit 3eb870f0843a00042ca7dd89837fbe0cc6f918c2 Author: Noel <noel.gran...@collabora.co.uk> Date: Fri Feb 26 12:45:19 2021 +0200 fix xhtml list export in other locales where I used 'replace' which is not available on older libxslt, so switch to 'translate' which works just as well here, and is available Change-Id: Idd1224e23c0d48956d94b6fc2c2a7b1afa05fa0c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124435 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 9b10e56187bf..bcad3abd9ab3 100644 --- a/filter/source/xslt/odf2xhtml/export/common/body.xsl +++ b/filter/source/xslt/odf2xhtml/export/common/body.xsl @@ -106,7 +106,7 @@ <xsl:if test="$listIndent"> <xsl:element namespace="{$namespace}" name="span"> <!-- some locales use , instead of . so replace it --> - <xsl:attribute name="style">margin-left:<xsl:value-of select="replace($listIndent, ',', '.')"/>cm</xsl:attribute> + <xsl:attribute name="style">margin-left:<xsl:value-of select="translate($listIndent, ',', '.')"/>cm</xsl:attribute> </xsl:element> </xsl:if> </xsl:template>