From b6d30bd05c54078bbf60e7242aabff21ed4492da Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 9 Jan 2019 22:28:53 -0500 Subject: [PATCH] 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. --- layouts/default.xsl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ + + -- 2.43.0