Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix self-close at end-of-line #184

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dahlbyk
Copy link

@dahlbyk dahlbyk commented Jun 15, 2017

When makeNeverCloseSelfClosing is true:

  • Typing /> at EOL now correctly inserts  /> rather than / />.
  • Typing  > at EOL now correctly inserts  /> rather than   />.

In both cases, the end-of-partial check wasn't accounting for the fact that the > has already been added to the line.

Before

autoclose-selfclose-broken

After

autoclose-selfclose-fixed

dahlbyk added 2 commits June 15, 2017 10:57
When `makeNeverCloseSelfClosing` is `true`, typing "/>" at EOL now
correctly inserts "/>" rather than "/ />".
When `makeNeverCloseSelfClosing` is `true`, typing " >" at EOL now
correctly inserts " />" rather than "  />".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant