Remove /nix/store/<hash> prefixes from the manual.

svn path=/nixos/trunk/; revision=17673
This commit is contained in:
Nicolas Pierron 2009-10-06 09:53:19 +00:00
parent 2969f36b15
commit 2fe37ffe21

View file

@ -154,7 +154,16 @@
<xsl:attribute name="xlink:href">file://<xsl:value-of select="@value"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="@value" />
<!-- Print the filename and make it user-friendly by removing the
/nix/store/<hash> prefix. -->
<xsl:choose>
<xsl:when test="start-with(@value, '/nix/store/')">
<xsl:value-of select="substring-after(@value, '-')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@value" />
</xsl:otherwise>
</xsl:choose>
</filename></member>
</xsl:for-each>
</simplelist>