haml/html2haml — pull request #4 by snatchev (2012-06-13 13:28:26+00:00)
Title: fix conditional logic by moving it to the block opener/closer checks

The issue was with a precedence order problem.

the `&&` should have been an `and` but that would have been a confusing conditional so I moved the `has_code?` into the methods that test for blocks.