1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 14:35:47 +01:00

Fix <ex>foo!</ex>

This commit is contained in:
Kris Maglione
2009-11-07 14:35:46 -05:00
parent 470e609da4
commit 18d716c4af

View File

@@ -247,7 +247,7 @@
<xsl:template name="linkify-tag">
<xsl:param name="contents" select="text()"/>
<xsl:param name="tag" select="$contents"/>
<xsl:variable name="tag" select="str:tokenize($contents, ' [!')[1]"/>
<a href="liberator://help-tag/{$tag}" style="color: inherit;">
<xsl:if test="contains($tags, concat(' ', $tag, ' '))">
<xsl:attribute name="href">#<xsl:value-of select="$tag"/></xsl:attribute>
@@ -353,7 +353,6 @@
<span liberator:highlight="HelpEx">
<xsl:call-template name="linkify-tag">
<xsl:with-param name="contents" select="."/>
<xsl:with-param name="tag" select="substring-before(concat(., '!'), '!')"/>
</xsl:call-template>
</span>
</xsl:template>