Created
January 26, 2014 14:50
-
-
Save Jagua/8633876 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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