[PATCH 12/17] XHTML export: strip whitespace in binary data
andrew-libreoffice.org at pileofstuff.org
andrew-libreoffice.org at pileofstuff.org
Thu Aug 14 14:53:52 PDT 2014
From: Andrew Sayers <andrew-libreoffice.org at pileofstuff.org>
Fixes output in xsltproc
---
filter/source/xslt/odf2xhtml/export/common/body.xsl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git filter/source/xslt/odf2xhtml/export/common/body.xsl filter/source/xslt/odf2xhtml/export/common/body.xsl
index cfb464f..5aed262 100644
--- filter/source/xslt/odf2xhtml/export/common/body.xsl
+++ filter/source/xslt/odf2xhtml/export/common/body.xsl
@@ -360,7 +360,7 @@
<xsl:value-of select="concat('a_', translate(normalize-space($title), '.,;: %()[]/\+', '_____________'))"/>
</xsl:when>
<xsl:when test="self::draw:image[office:binary-data]">
- <xsl:text>data:image/*;base64,</xsl:text><xsl:value-of select="office:binary-data"/>
+ <xsl:text>data:image/*;base64,</xsl:text><xsl:value-of select="translate( translate(office:binary-data, ' ', '' ), '
', '' )"/>
</xsl:when>
<xsl:otherwise>
<xsl:choose>
--
1.8.5.1
More information about the LibreOffice
mailing list