haml / html2haml

Convert HTML and HTML+Erb to Haml.
MIT License
259 stars 55 forks source link

converted to '\' instead of =? #87

Open rosewcs345 opened 3 years ago

rosewcs345 commented 3 years ago

This seems unusual to me, but may not really be an issue, but I would appreciate some insight.

lines such as: Rating: <%= @movie.rating %>

are now being converted to: Rating: #{@movie.rating}

I would have expected this: Rating: = @movie.rating

could someone explain what the '\' is doing and if that is correct? If I don't want the '\' notation, is there an option I can use?

The problem I'm having is that when I have a regular expression which spans multiple lines, it seems to upchuck on the ' \ '(????) When I substitute the alternate way of converting it, the regular expression matches: expect(page.body).to match(/.#{field.capitalize}:.#{field_value}/m)