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.<div>
<br></div><div>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: <a href="http://www.yesodweb.com/book/templates#tags">http://www.yesodweb.com/book/templates#tags</a></div>
<div><br></div><div>Greg Weber<br><br><div class="gmail_quote">On Thu, May 19, 2011 at 1:49 PM, Patrick Palka <span dir="ltr"><<a href="mailto:patrick@parcs.ath.cx">patrick@parcs.ath.cx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I find it a bit unintuitive that the hamlet code<br>
<br>
<p>hello<br>
<strong>there<br>
<br>
or<br>
<br>
<p><br>
hello<br>
<strong>there<br>
<br>
generates the html<br>
<br>
<p>hello<strong>there</strong></p><br>
<br>
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<br>
mentally ugly and syntactically obscure.<br>
<br>
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org" target="_blank">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</blockquote></div><br></div>