akalongman / akalongman/sublimetext-codeformatter

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

未关闭
#188 2 条评论 0 个 reaction 已指派 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 摘要。