Oops, yes I missed the | at the end of the last line. Thanks for
taking the time to reply; however the | is not exactly related to the
problem at hand.
I have narrowed narrowed it down. The following haml template gives
the error "Syntax error on line 6: 4 spaces were used for indentation.
Haml must be indented using two spaces.":
%div
%div
= "blah blah blah blah blah " + |
"blah blah blah." |
= "blah"
If I remove the blank line between the two "=" statements, it compiles
fine.
If the statement above the blank line isn't a multiline statement, it
compiles fine.
If I add 4 spaces to the blank line (to match the indentation of the
other lines, even though other than whitespace there is nothing on
that line) it compiles fine.
I'm using haml 2.0.3, ruby 1.8.7-p22, and rails 2-1-stable.
Cheers,
Dave.
On Sep 28, 4:31 pm, Nathan Weizenbaum <
nex...@gmail.com> wrote:
> The problem is caused by the multiline syntax. Haml multiline syntax
> requires the | to be used at the end of *each* line in the multiline
> block. So you should do
>
> stuff
> stuff
> = blah blah blah blah blah |
> blah blah blah blah |
>
> = blah
>
> See question three ofhttp://
haml.hamptoncatlin.com/docs/rdoc/files/FAQ.html.