Jeff-Lewis / nhaml

Automatically exported from code.google.com/p/nhaml
0 stars 0 forks source link

Blank lines should be ignored #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've found that lines which contain only space can effect the current
indentation level. If the number of spaces match the current indentation,
then the next content line will be fine. If the number of spaces is 0 or
something other than the current indent level, the next line will be
unindented somewhat randomly.

In normal Haml, lines with only whitespace are ignored.

Original issue reported on code.google.com by tdreyno on 1 May 2009 at 12:34

GoogleCodeExporter commented 9 years ago
Hi Tdreyno, thanks for you report.

Can you please provide an simple example .haml file and its expected .html 
output
file, so that we have a test case for it.

Original comment by lanwin...@gmail.com on 1 May 2009 at 5:26

GoogleCodeExporter commented 9 years ago
I've attached an example.

I should also note that white-space problems like this can occur inside a 
partial and actually generate html 
defined in that partial outside of the div which calls the partial. Does that 
make sense?

The content attached was generated directly by the official haml binary.

Original comment by tdreyno on 1 May 2009 at 5:34

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by simon.cropp@gmail.com on 19 May 2009 at 12:32