You can use the alligator operators to trim surrounding and internal whitespace. E.g.
.foo> This has no whitespace outside the foo div.
.foo< This has no whitespace just inside the foo div.
.foo>< This has no whitespace outside or inside.
http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html#wh...