haml/haml — pull request #600 by pivotal-casebook (2012-10-18 19:31:54+00:00)
Title: Fix line numbers for nested blocks in 3-1-stable

The compiler adds extra newlines when more than one block ends on the same line.

For example, this Haml source will give the line number 5 instead of 4 in its exception:

````haml
- tap do
- tap do
some text
- raise "foo"
````

We fixed it by replacing the newline with a semicolon, and added test coverage.

For now it's only in 3-1-stable, but this fix should work in master as well. We don't yet have test coverage for master.

We also enabled testing of line number backtraces in Rubies other than 1.8, which looks like it was mistakenly disabled.