Skip to content

Unexpected indentation after empty element and attribute #159

@itn3000

Description

@itn3000

Environment

  • win8.1 x64
  • vscode: 1.35.1
  • redhat.vscode-xml: 0.7.0

Steps to reproduce

  1. write empty body element and add attribute, like <A B=""/>
  2. enter the end of element

Expected result

same indentation to element like here(_ is cursor)

<A B=""/>
_

Actual result

one indentation is added like here(_ is cursor)

<A B=""/>
    _

Additionally, without attribute, this is not reproduced, and formatting with Shift+Alt+f, indentation will be adjusted.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions