Skip to content

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

Closed
@annettemmm

Description

@annettemmm

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions