3
0
Fork 0
forked from mirrors/nixpkgs

* Escape strings.

svn path=/nixos/branches/modular-nixos/; revision=16374
This commit is contained in:
Eelco Dolstra 2009-07-15 13:40:30 +00:00
parent 1424399002
commit f076849acd

View file

@ -72,7 +72,7 @@
<xsl:template match="string"> <xsl:template match="string">
<!-- !!! escaping --> <!-- !!! escaping -->
<xsl:text>"</xsl:text><xsl:value-of select="@value" /><xsl:text>"</xsl:text> <xsl:text>"</xsl:text><xsl:value-of select="str:replace(str:replace(str:replace(@value, '\', '\\'), '&quot;', '\&quot;'), '&#010;', '\n')" /><xsl:text>"</xsl:text>
</xsl:template> </xsl:template>