akalongman / akalongman/sublimetext-codeformatter

Indentation of input element's parent doesn't work correctly when attributes on multiple lines

オープン
#188 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
772
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm noticing this behavior in my ST3 (build 3103) when formatting HTML with input tags. My version of CodeFormatter is 3.1.0.
Given this markup:

```



Label 1





Label 2


```

When formatting using `Format Code` or `Format Code as HTML Syntax` I get the following result:

```



Label 1





Label 2




```

I.e. the closing div tags are one indent too far right and all subsequent markup is shifted one indent right as a result.
This only happens when the input element's attributes are distributed on several lines. So this markup will work properly (and stay unchanged):

```



Label 1





Label 2


```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。