Skip to content

Script nodes on same line as tag node formatted incorrectly #102

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
annettemmm opened this issue Feb 8, 2024 · 0 comments · Fixed by #112
Closed

Script nodes on same line as tag node formatted incorrectly #102

annettemmm opened this issue Feb 8, 2024 · 0 comments · Fixed by #112

Comments

@annettemmm
Copy link

Hello! I found some cases where when the script node is evaluated on the same line as the tag node, the !&~ symbols for unescaping html, preserving, etc, are being formatted incorrectly.

All of the following tests are currently failing

  def test_preserve
    assert_format("%p~ foo")
  end

  def test_escape_html
    assert_format("%div&= foo")
  end

  def test_preserve_escape_html
    assert_format("%p&~ foo")
  end

  def test_unescape
    assert_format('%p!= foo')
  end

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.

1 participant