aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utility/xhtml.xsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/utility/xhtml.xsl b/utility/xhtml.xsl
index 8b768fa..2f54975 100644
--- a/utility/xhtml.xsl
+++ b/utility/xhtml.xsl
@@ -15,7 +15,9 @@
<span>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="node()" mode="xhtml"/>
- <xsl:comment></xsl:comment>
+ <xsl:if test="not(node())">
+ <xsl:comment></xsl:comment>
+ </xsl:if>
</span>
</xsl:template>