summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorSvante Schubert <svante.schubert@gmail.com>2020-08-24 17:22:41 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2021-03-02 13:22:27 +0100
commit26271331c8da8c872f29463d9c390b1b570eb020 (patch)
treec1e27c6f79607375290b20d049f9eb9ac08d8408 /filter
parent795f89c7d1e4ade6cdaa12cb4ba0857ae3b1e02e (diff)
HTML XSLT: Overtaking masking ' for ODF font-family with spaces in names
Change-Id: I718fc232a3903d0b449a4c9a4ef4dff601744756 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111615 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Diffstat (limited to 'filter')
-rw-r--r--filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl7
1 files changed, 3 insertions, 4 deletions
diff --git a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
index d4418725f2fc..c81cc9a1e0be 100644
--- a/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
+++ b/filter/source/xslt/odf2xhtml/export/common/styles/style_mapping_css.xsl
@@ -214,12 +214,11 @@
<xsl:template match="@style:font-name">
<xsl:param name="globalData" />
- <xsl:text>font-family:"</xsl:text>
+ <xsl:text>font-family:</xsl:text>
<xsl:variable name="content" select="."/>
- <xsl:variable name="quote">'</xsl:variable>
<xsl:variable name="fontName" select="$globalData/office:font-face-decls/style:font-face[@style:name=$content]/@svg:font-family" />
- <xsl:value-of select="translate($fontName, $quote, '')"/>
- <xsl:text>"; </xsl:text>
+ <xsl:value-of select="$fontName"/>
+ <xsl:text>; </xsl:text>
</xsl:template>
<xsl:template match="@style:row-height">