Not splitting string by line breaks '\n'
kAleksei opened this issue · 1 comments
kAleksei commented
I use this extension in Xplat Release Notes VSIX package.
So faced with this issue while writing release notes template.
It uses:
"handlebars": "^4.7.7",
"handlebars-helpers": "^0.10.0"
While trying to execute split (and log the result) faced with the issue, when it's not splitting the string by \n
character
Log messages:
[ "Select only one item in the collection for appropriate semantic versioning:\n- [X] Major\n- [ ] Feature\n- [ ] Hotfix\n\n###Breaking changes\n - Some changes" ]
[ "# Breaking changes\n- Some changes added\n# Fixes\n- Something fixed" ]
Originally posted by @kAleksei in #300 (comment)
zkent commented
Has anyone come up with a solution for this? I am trying to use split
for strings that have a double newline such as \n\n
. I can't figure out how to split them. Where is the split
helper coming from? I haven't seen it in the code.
(sorry for posting this in discussion also)