From: Nick Bowler Date: Thu, 10 Jan 2019 03:28:53 +0000 (-0500) Subject: Tweak whitespace-preserving templates. X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/commitdiff_plain/b6d30bd05c54078bbf60e7242aabff21ed4492da Tweak whitespace-preserving templates. We don't want to add whitespace to span-level elements which were empty to start with, which is normal for e.g. img elements. Also, if an element contains _only_ whitespace, it was probably put there on purpose so let's preserve it. --- diff --git a/layouts/default.xsl b/layouts/default.xsl index 5a01d79..bfe9101 100644 --- a/layouts/default.xsl +++ b/layouts/default.xsl @@ -81,7 +81,10 @@ - + + + + @@ -97,6 +100,8 @@ + +