[web-devel] [hamlet] implicit spaces with newlines?
greg at gregweber.info
Thu May 19 23:08:24 CEST 2011
I am wondering if the default behavior should be changed in hamlet, because
I find the white space issues a bit annoying myself. You end up with issues
either way, but in Hamlet we have made html the default, so maybe white
space behavior should be more closely aligned.
Yes, you need to append a space. You can follow the space with a '#' to let
everyone know there is a space there. This is documented in the book:
On Thu, May 19, 2011 at 1:49 PM, Patrick Palka <patrick at parcs.ath.cx> wrote:
> I find it a bit unintuitive that the hamlet code
> generates the html
> I expected there to be a space between "hello" and "there" similar to what
> the html specifications dictate. Is this behavior intentional or an
> oversight? If it's the former, then what is the recommended way to simulate
> my expected behavior? Appending a space to the end of a line is
> mentally ugly and syntactically obscure.
> web-devel mailing list
> web-devel at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the web-devel