diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-29 14:31:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-30 07:45:21 +0200 |
commit | 6c747ccf6cbfe0dc5d591f8ce68a1ca6c63cde53 (patch) | |
tree | 063cb4a6732d30a1d5c13457ffe72647d777f6b8 /filter | |
parent | e3d1fb97fcdff75424d4a116f29e8550f94f8a42 (diff) |
tdf#145361 fix XSLT for older libxslt
regression from
commit 3eb870f0843a00042ca7dd89837fbe0cc6f918c2
Author: Noel <noel.grandin@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.grandin@collabora.co.uk>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/xslt/odf2xhtml/export/common/body.xsl | 2 |
1 files changed, 1 insertions, 1 deletions
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> |