|
From: Tim W. <tw...@re...> - 2005-03-09 19:21:19
|
Here is a patch to fix significant space handling in
libfo-compat.xsl. This preserves spaces between text nodes and (for
example) fo:inline nodes.
Tim.
*/
--- /usr/share/xml/libfo-0.3.1/libfo-compat.xsl 2005-03-09 15:21:42.000000000 +0000
+++ libfo-compat.xsl 2005-03-09 19:20:11.000000000 +0000
@@ -75,7 +75,13 @@
</xsl:template>
<xsl:template match="text()">
+ <xsl:if test="contains(' 
',substring(.,1,1))">
+ <xsl:text> </xsl:text>
+ </xsl:if>
<xsl:value-of select="normalize-space()"/>
+ <xsl:if test="contains(' 
',substring(.,string-length(),1))">
+ <xsl:text> </xsl:text>
+ </xsl:if>
</xsl:template>
<xsl:template match="@border">
|