Skip to content

Rewriter: Convert to tag.preย #1615

@natematykiewicz

Description

@natematykiewicz

Converting from <pre></pre> to tag.pre results in odd syntax:

Input:

    <pre><%= foo %></pre>

Output:

    <%= tag.pre do %><%= foo %><% end %>

Expected:

    <%= tag.pre(foo) %>

Although the do/end format does work, it seems very strange. I'd expect it to be a positional argument instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions