Yes; the first example is ambiguous with the multiline syntax. Don't put
spaces around your pipes. It's not good Ruby style, anyway.
On Thu, Jun 25, 2009 at 6:40 AM, NeX <nex.developm
...@gmail.com> wrote:
> Hi Guys, I'm having a parse problem using blocks on a HAML file.
> Example:
> - @item.each do | item |
> = item.title
> .....................................
> .....................................
> To solve the problem I should remove the spaces after the first pipe
> and before the last one, like this:
> - @item.each do |item|
> = item.title
> .....................................
> .....................................
> Is this related with the multiline string syntax?
> Regards,
> --
> NeX