Tweak whitespace-preserving templates.
authorNick Bowler <nbowler@draconx.ca>
Thu, 10 Jan 2019 03:28:53 +0000 (22:28 -0500)
committerNick Bowler <nbowler@draconx.ca>
Thu, 10 Jan 2019 03:28:53 +0000 (22:28 -0500)
commitb6d30bd05c54078bbf60e7242aabff21ed4492da
treed015e37daca7a001e6bc196206a623f9e361ef2e
parent45c81baacdb5c6b53a2312b933f926ae7f7fc44a
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