diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-29 14:31:19 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-11-02 18:02:41 +0100 |
commit | c10bfb4c582c13a294c1689ed7f9256b24d22075 (patch) | |
tree | 84c7c2f4e450b8c35df817110c6c3a233bb62c4e | |
parent | 369b883ac9cda5acae77e6df9edc00d1f1213b10 (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>
(cherry picked from commit 6c747ccf6cbfe0dc5d591f8ce68a1ca6c63cde53)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124478
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-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> |