mrhanlon / less-than-slash

Atom.io package for closing open tags when `</` is typed, like in Sublime Text 3.
MIT License
23 stars 6 forks source link

Empty tags close #2

Closed mrhanlon closed 10 years ago

mrhanlon commented 10 years ago

Noticed that the input tag was getting closed when it should be skipped because it's in emptyTags.

sgtpepper43 commented 10 years ago

Yeah I'm seeing this issue too

aVandalInShorts commented 5 years ago

It might be an empty tag in HTML or PHP, but with XSLT it can be oppened to change the attributes like so:

<input>
    <xsl:if test="$itIs = true()">
        <xsl:attribute name="value">It is</xsl:attribute>
    </xsl:if>
</input>

So I have to close it with the wrong closing tag and manually change it.

MarcPorciuncula commented 5 years ago

@aVandalInShorts to get around this you can omit input from the Empty tags setting. Note this will cause input tags to complete in all (non XSLT) files which might be just as annoying, you could get around that by writing all your normal input tags as self closing (ie. <input />) though.