Autocomplete adding extra tab when closing tag on new line
ulysses opened this issue · 2 comments
Prerequisites
- [ X] Put an X between the brackets on this line if you have done all of the following:
- Reproduced the problem in Safe Mode: http://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
- Followed all applicable steps in the debugging guide: http://flight-manual.atom.io/hacking-atom/sections/debugging/
- Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
- Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
- Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
When closing an HTML tag autocomplete adds an extra tab, putting the closing tag an extra tab over on the new line.
Steps to Reproduce
- Begin to write a tag
- Chose autocomplete tag option
- Hit return
Expected behavior:
The tag would align with the same tabs as corresponding tag
Actual behavior:
Like this:
<div>
</div>
Reproduces how often:
Every time autoclosing a tag that uses a new line.
Versions
Atom : 1.35.1
Electron: 2.0.18
Chrome : 61.0.3163.100
Node : 8.9.3
apm 2.1.3
npm 6.2.0
node 8.9.3 x64
atom 1.35.1
python 2.7.10
git 2.15.2
Thanks for the report @ulysses - if you save the HTML file and then close and reopen it, does the indentation start working for you? Alternatively, do things start working if you temporarily disable Settings > Core > Use Tree Sitter Parsers
?
Also wonder if this is the same issue as atom/language-html#222.