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 &#39;#&#39; 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">&lt;<a href="mailto:patrick@parcs.ath.cx">patrick@parcs.ath.cx</a>&gt;</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>
&lt;p&gt;hello<br>
    &lt;strong&gt;there<br>
<br>
or<br>
<br>
&lt;p&gt;<br>
     hello<br>
     &lt;strong&gt;there<br>
<br>
generates the html<br>
<br>
&lt;p&gt;hello&lt;strong&gt;there&lt;/strong&gt;&lt;/p&gt;<br>
<br>
I expected there to be a space between &quot;hello&quot; and &quot;there&quot; similar to what the html specifications dictate. Is this behavior intentional or an oversight? If it&#39;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>