forked from mirrors/nixpkgs
* Escape strings.
svn path=/nixos/branches/modular-nixos/; revision=16374
This commit is contained in:
parent
1424399002
commit
f076849acd
|
@ -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, '\', '\\'), '"', '\"'), '
', '\n')" /><xsl:text>"</xsl:text>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue