You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've bumped into either this bug, or a bug like it with the yasnippet release that is 'yasnippet-20140617.1640' in MELPA.
When in HTML mode (which I think is built on NXML), snippets with CRLF get inserted verbatim. When I changed the snippet stored to be strictly unix, the snippet inserted okay.
The snippet in question was the li snippet in NXML mode.
Either yasnippet should accept CRLF files, or it shouldn't ship snippets with CRLF endings.
Cheers
The text was updated successfully, but these errors were encountered:
This is a common problem. The snippet you refer to probably lives in the https://github.com/AndreaCrotti/yasnippet-snippets repo. This problem has to be reported and fixed there (remove the CRLF endings) and then the git submodule has to be updated in yasnippet.
@npostavs, perhaps at least the MELPA recipe should require the yasnippet-snippets package, or maybe the other way around (this has been discussed before).
In the meantime @MrBones118, after you report this is yasnippet-snippets, checking out the latest github head and manually updating the snippets/ submodule should do the trick.
The snippet in question was the li snippet in NXML mode.
snippets/nxml-mode/li is indeed stored with DOS line endings, BUT the snippet body doesn't end in a newline DOS or otherwise, and I don't see any CRLF inserted when I expand it. I also tried snippets/nxml-mode/form which does have DOS newlines in its body, but no CRLFs were inserted from that either.
When in HTML mode (which I think is built on NXML)
FYI, html-mode is based on sgml-mode, and not related to NXML. You may be thinking of nXhtml.
I've bumped into either this bug, or a bug like it with the yasnippet release that is 'yasnippet-20140617.1640' in MELPA.
When in HTML mode (which I think is built on NXML), snippets with CRLF get inserted verbatim. When I changed the snippet stored to be strictly unix, the snippet inserted okay.
The snippet in question was the li snippet in NXML mode.
Either yasnippet should accept CRLF files, or it shouldn't ship snippets with CRLF endings.
Cheers
The text was updated successfully, but these errors were encountered: