Skip to content
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

HTML formatting broken when tag is too long #1129

Closed
aeschli opened this issue Feb 10, 2017 · 4 comments
Closed

HTML formatting broken when tag is too long #1129

aeschli opened this issue Feb 10, 2017 · 4 comments

Comments

@aeschli
Copy link

aeschli commented Feb 10, 2017

From @RaananW on February 8, 2017 14:27

  • VSCode Version: Code 1.9.0 (27240e71ef390bf2d66307e677c2a333cebf75af, 2017-02-02T08:31:00.827Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
angular-material-snippets 4tron 0.3.1
bracket-pair-colorizer CoenraadS 0.2.1
vscode-svgviewer cssho 1.3.1
githistory donjayamanne 0.1.5
python donjayamanne 0.5.8
EditorConfig EditorConfig 0.3.4
tslint eg2 0.8.1
vscode-npm-script eg2 0.1.8
autofilename JerryHong 0.1.3
docthis joelday 0.3.10
Angular2 johnpapa 1.0.2
code-beautifier michelemelluso 1.6.2
csharp ms-vscode 1.6.2
debugger-for-chrome msjsdiag 2.5.2
java redhat 0.0.9
vscode-icons robertohuertasm 7.2.0
partial-diff ryu1kn 0.2.0
vscode-sql-beautify sensourceinc 0.0.4
autoimport steoates 1.2.2
code-spell-checker streetsidesoftware 0.17.2
local-history xyz 1.1.0
html-css-class-completion Zignd 1.0.3

When trying to format an html file with html tags that spread accross two or more lines, the closing html tag stays at the same level of the content and doesn't go back.
Example:

Expected:

<md-autocomplete ng-if="$ctrl.parentSelect" flex md-selected-item="$ctrl.parent" md-selected-item-change="$ctrl.selectParent(item)"
    md-search-text="$ctrl.searchText" md-items="item in $ctrl.getResources($ctrl.searchText)" md-item-text="item.title" md-min-length="2"
    md-floating-label="Parent">
.......
</md-autocomplete>

After formatting with vscode:

<md-autocomplete ng-if="$ctrl.parentSelect" flex md-selected-item="$ctrl.parent" md-selected-item-change="$ctrl.selectParent(item)"
    md-search-text="$ctrl.searchText" md-items="item in $ctrl.getResources($ctrl.searchText)" md-item-text="item.title" md-min-length="2"
    md-floating-label="Parent">
    .......
    </md-autocomplete>

Copied from original issue: microsoft/vscode#20204

@aeschli
Copy link
Author

aeschli commented Feb 10, 2017

From @chimon2000 on February 8, 2017 14:50

Also seeing this as of latest release.

@aeschli
Copy link
Author

aeschli commented Feb 10, 2017

Reproduced on http://jsbeautifier.org/

@HookyQR
Copy link
Contributor

HookyQR commented Feb 10, 2017

Same problem as #1103

@bitwiseman
Copy link
Member

Which means it is fixed in 1.6.9. Duplicate of #1103.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants