For most html tags, the extra whitespace is ignored (as the
specification dictates). But in the <pre> tag whitespace is
significant. But HSX just strips out the extra whitespace.. is there
any sensible way to use the <pre> tag with hsx?
- jeremy
This is a tricky one. And it depends on what you mean by sensible...
There is no (sensible) way to change hsx/haskell-src-exts to treat
<pre> in a special way, so it's retain whitespace always or never.
It's not clear which is the best, and I've several times wondered if
the choice I made was the right one.
You can get <pre> to retain whitespace "today" by giving it
explicitly, i.e. <pre><% " " %></pre> . Not sure if that's good
enough for you. :-)
Cheers,
/Niklas