Skip to content

Unwanted line after HAML filter #81

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

Closed
ledermann opened this issue Mar 12, 2023 · 2 comments · Fixed by #82
Closed

Unwanted line after HAML filter #81

ledermann opened this issue Mar 12, 2023 · 2 comments · Fixed by #82

Comments

@ledermann
Copy link

ledermann commented Mar 12, 2023

When using HAML filters, the formatter of v4.0.2 inserts an unwanted blank line.

This ...

%html
  %head
    :javascript
      console.log('This is inline script');
  %body
    = yield

... is formatted as ...

%html
  %head
    :javascript
      console.log('This is inline script');

  %body
    = yield

... is formatted as ...

%html
  %head
    :javascript
      console.log('This is inline script');


  %body
    = yield

... and so on. Note the added line(s) before %body.
Each time (e.g. by saving in VSCode) the formatter adds another blank line.

@kddnewton
Copy link
Member

Thanks for your patience @ledermann, I'll release this in a new patch release momentarily.

@ledermann
Copy link
Author

Works fine, thanks!

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

Successfully merging a pull request may close this issue.

2 participants