You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
When an HTML attribute string contains text that looks like an open tag, all following lines are indented one level more than they should be.
Steps to Reproduce
In Atom, create a new HTML file. (Optionally configure 1 indent = 4 spaces).
Write or paste code like the following:
<div>
<div>
<div>
<input type="text" value="Text that does not resemble a tag" />
</div>
<div>
<input type="text" value="<Pending>" />
</div>
</div>
</div>
Select All.
Auto-indent.
Expected behavior:
Code formatted like the sample above.
Actual behavior:
<div>
<div>
<div>
<input type="text" value="Text that does not resemble a tag" />
</div>
<div>
<input type="text" value="<Pending>" />
</div>
</div>
</div>
Note that everything after value="<Pending>" is indented one level more than it should be, and close div tags don't line up with their open div tags.
Adding a slash anywhere in the "Pending" not-a-tag and doing another auto-indent causes proper alignment. Replacing <Pending> with <Pending> is a better solution. However, it seems like Atom should still be able to indent this properly, by ignoring what's in the attribute string.
Reproduces how often:
Always, even in safe mode.
Versions
Atom : 1.23.2
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
Windows: 10 Pro
The text was updated successfully, but these errors were encountered:
Description
When an HTML attribute string contains text that looks like an open tag, all following lines are indented one level more than they should be.
Steps to Reproduce
Expected behavior:
Code formatted like the sample above.
Actual behavior:
Note that everything after
value="<Pending>"
is indented one level more than it should be, and close div tags don't line up with their open div tags.Adding a slash anywhere in the "Pending" not-a-tag and doing another auto-indent causes proper alignment. Replacing
<Pending>
with<Pending>
is a better solution. However, it seems like Atom should still be able to indent this properly, by ignoring what's in the attribute string.Reproduces how often:
Always, even in safe mode.
Versions
Atom : 1.23.2
Electron: 1.6.15
Chrome : 56.0.2924.87
Node : 7.4.0
Windows: 10 Pro
The text was updated successfully, but these errors were encountered: