Skip to content

Formatting issues with multiline implicit expressions #12622

@davidwengier

Description

@davidwengier

Extracted out of #12554

The div tag below moves because we're not emitting the first like of the multiline implicit expression, and we don't end it with a semi-colon.

<div>
    @if (true)
    {
        @Html.TextBox(new Test()
        {
            test = 5
        })
        <div></div>
    }
</div>

Generating a semi-colon into the formatting document should fix it. The question is where :)

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions