Html does not indent in a newly created file
Opened this issue · 1 comments
@DrunkKiwi commented on Dec 24, 2018, 2:41 PM UTC:
Prerequisites
- Put an X between the brackets on this line if you have done all of the following:
[X] Reproduced the problem in Safe Mode: https://flight-manual.atom.io/hacking-atom/sections/debugging/#using-safe-mode
[X] Followed all applicable steps in the debugging guide: https://flight-manual.atom.io/hacking-atom/sections/debugging/
[X] Checked the FAQs on the message board for common solutions: https://discuss.atom.io/c/faq
[X] Checked that your issue isn't already filed: https://github.com/issues?utf8=✓&q=is%3Aissue+user%3Aatom
[X?] Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
Okay, so whenever I create a new file via CTRL+N, save it with CTRL+S, a prompt shows asking me to name the file, i name it "whatever.html".. What happens is that in this whatever.html file, when I start to code the tags do not indent themselves.
Ex. instead of being:
<head>
</head>
It renders as:
<head>
</head>
To solve this, I need to completely exit out of Atom and then get back in it again in the same file and only then it works.
Steps to Reproduce
- Create a new file
- Save it as [somename].html
- Start coding with tags, you'll see that the tags do not indent in the same level.
Expected behavior: [What you expect to happen]
I expect the tags to indent themselves as happens normally as I'm writing code, ex:
<div>
</div>
Actual behavior: [What actually happens]
<div>
</div>
now i have to go and manually indent the div closing tag in the same level as the div opening tag
Reproduces how often: [What percentage of the time does it reproduce?]
It happens in every case, 100%.
Versions
atom 1.33.1
OS: Windows 10, Enterprise.
Additional Information
I use django sometimes and the django html files never render html normally, it is always buggy. However, this issue doesn't have to have django to be replicated. It happens in pure html files and that's what's driving me crazy:)
This issue was moved by rsese from atom/atom#18619.
Thanks for the report! I can reproduce with 1.33.1 on macOS 10.12.6, Looks like this doesn't reproduce with Tree-sitter disabled though.