Skip to content

Instantly share code, notes, and snippets.

@Jagua
Created January 26, 2014 14:50
Show Gist options
  • Save Jagua/8633876 to your computer and use it in GitHub Desktop.
Save Jagua/8633876 to your computer and use it in GitHub Desktop.
diff -r 6942b10a42b1 common/content/help.xsl
--- a/common/content/help.xsl Thu Dec 19 22:08:14 2013 +0100
+++ b/common/content/help.xsl Sun Jan 26 23:43:54 2014 +0900
@@ -351,9 +351,16 @@
<xsl:template match="liberator:ex" mode="pass-2">
<span liberator:highlight="HelpEx">
- <xsl:call-template name="linkify-tag">
- <xsl:with-param name="contents" select="."/>
- </xsl:call-template>
+ <xsl:choose>
+ <xsl:when test="count(*)=0">
+ <xsl:call-template name="linkify-tag">
+ <xsl:with-param name="contents" select="."/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:apply-templates select="node()"/>
+ </xsl:otherwise>
+ </xsl:choose>
</span>
</xsl:template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment