nex3/haml — pull request #489 by richardkmichael (2012-02-09 03:52:00+00:00)
Title: [Haml] Fix nuke innerwhite space in loop.

At a recent Ruby hack night, I was inspired to investigate #465.

I've taken a stab at fixing it, I would appreciate any comments. This approach walks back up the node tree, searching for the first node, if any, which had enabled :nuke_inner_whitespace.

All tests pass (`rake test`), but from docs I've understood there are no tests for script or silent-script node types.. ?

After the fix, the Haml below produces the desired HTML.

```haml
%ul<
- for str in %w[foo bar baz]
= str
```

```html

foobarbaz

```