Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html2haml should be aware of comma multiline folding #27

Open
mattwildig opened this issue Mar 24, 2013 · 1 comment
Open

html2haml should be aware of comma multiline folding #27

mattwildig opened this issue Mar 24, 2013 · 1 comment

Comments

@mattwildig
Copy link
Contributor

(originally reported by @nex3 as haml/haml#216)

For example,

<%= foo :bar,
        :baz %>

gets multiline pipes added. This is no longer necessary.

@uekkie
Copy link

uekkie commented Feb 19, 2020

I also hope to get rid of multiline pipe.

HAML that raises an exception

index.html.erb

<%= link_to "root",
    root_path %>
<%= link_to "root",
    root_path %>
> html2haml index.html.erb

index.html.haml

= link_to "root", |
  root_path       |
= link_to "root", |
  root_path       |

This haml raises ActionView :: SyntaxErrorInTemplate.
Because the multiline pipe continues to the next element.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants