aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2016-05-05 16:40:17 +0200
committerAdrian Kummerlaender2016-05-05 16:40:17 +0200
commite0686902eb6ae0bec31a9d679602971822ba6381 (patch)
treee011fe778532cc315a5981d3817b2e2d117d9026 /utility
parent41e1b04caec5646fec9ce50572ae153a178024a7 (diff)
downloadblog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar.gz
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar.bz2
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar.lz
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar.xz
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.tar.zst
blog.kummerlaender.eu-e0686902eb6ae0bec31a9d679602971822ba6381.zip
Only add workaround comment for empty `span` nodes
See paragraph 5 in 67162f80a77a41bc95d7de05a87f7ee9a21a121c
Diffstat (limited to 'utility')
-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>