Fixed multiline block does not end with '|' #9

Merged
merged 1 commit into from Nov 8, 2012

Projects

None yet

2 participants

Contributor
ypresto commented Oct 28, 2012

According to current haml specification, even the last line in the multiline block should end with |.
http://haml.info/docs/yardoc/file.REFERENCE.html#multiline
So I fixed to follow this spec.

TODO: to add test for mutiline token on last line

But I think this change will spoil existing haml files containing multiline block which does not end with '|'.
(What can we do? :( )
Is it better to control with switch or something else?

@vti vti merged commit 49bc2b9 into vti:master Nov 8, 2012
Owner
vti commented Nov 8, 2012

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment