Open nevans opened 1 year ago
My apologies that this is just a simple "post and run" issue. Based on a quick skim of the codebase, I found it quite readable, and I'm sure I could post a PR for this... but I don't have time for it at the moment (and I worked around the issue by simply deleting the comments!)
I agree… if you have time to send that PR would be awesome, the starting point would be to adjust the expected output for multiline comments in https://github.com/nebulab/erb-formatter/blob/main/test/fixtures/comments.html.expected.erb
My code base had a few places where html had been temporarily commented out using syntax like so:
I don't want the comments to be formatted (other than perhaps indentation if they are multiline). But erb-format misinterpreted the comments and seemed to get confused, treating the commented tags as real tags.