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

Empty lines in snipMate snippets are expanded #84

Closed
dcampos opened this issue Oct 14, 2022 Discussed in #82 · 1 comment
Closed

Empty lines in snipMate snippets are expanded #84

dcampos opened this issue Oct 14, 2022 Discussed in #82 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@dcampos
Copy link
Owner

dcampos commented Oct 14, 2022

Discussed in #82

Originally posted by raine October 11, 2022
If you use snippets such as these with snippy, you'll notice that the empty lines after the snippets (before the next snippet) are expanded as well.

Am I missing something obvious or is this a bug? A simple fix is to manually remove every blank line but the README claims snipMate compatibility so I was wondering about this.

Kapture 2022-10-11 at 16 05 15

^ Notice the extra empty line added when the snippet expands.

Thanks!

@dcampos dcampos added bug Something isn't working enhancement New feature or request labels Oct 14, 2022
@dcampos
Copy link
Owner Author

dcampos commented Oct 14, 2022

According to my tests, snipMate doesn't expand the last line if empty. I don't know whether this is intended behavior, but to be fully compatible with snipMate, we should remove a blank trailing line like they do.

dcampos added a commit that referenced this issue Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant