When trying to convert snippets (like this one) from rafamadriz/friendly-snippets to SnipMate, some snippets containing \n in their description aren't being converted correctly. This is a minimal example snippet (not from friendly-snippets):
{
"foreach": {
"prefix": "foreach",
"body": ["for (${1:type} ${2:var} : ${3:iterable}) {", "\t$0", "}"],
"description": "Enhanced for loop\nThis is a new line\nAnd another one"
}
}
Converted (the description spans multiple lines):
# Generated by snippet-converter.nvim (https://github.com/smjonas/snippet-converter.nvim)
snippet foreach Enhanced for loop
This is a new line
And another one
for (${1:type} ${2:var} : ${3:iterable}) {
$0
}
One possible solution would be converting newlines to spaces.
When trying to convert snippets (like this one) from rafamadriz/friendly-snippets to SnipMate, some snippets containing
\n
in their description aren't being converted correctly. This is a minimal example snippet (not from friendly-snippets):Converted (the description spans multiple lines):
One possible solution would be converting newlines to spaces.