-
Notifications
You must be signed in to change notification settings - Fork 10
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
NewLines in Message and Attachment Test not working #2
Comments
@eFloh Thanks for using Slack Notification task and for giving this feedback. I will make the necessary changes and release an update to the task. I will keep you updated here.. :) |
@eFloh did you find any work around for that? |
My suggestion is: Message and PreText are very much the same type of field.
this would be a one line change on the task I believe on the task input.ts file, method toJSON change this line to this line: or whatever is the way to read a variable. |
Hey guys, thanks for your hard work. I want to just tell you and others that for me, when using Powershel script only this works as a Newline-Character ``n |
Has there been any movement on this issue? I'm currently trying to send a multiline message and can't figure out how to get the |
Hi,
great extension, thanks!
But to use it in conjunction e.g. with the GenerateReleaseNotes task it would be great to be able to use variables that contain newlines correctly.
When a variable contains a Newline-Character, currently `n will be slacked. (i.e. the backtick from powershell special character escaping is not properly replaced. `t for tab character is the same.
Maybe it would be enough to manually replace at least these two instead of creating a generic solution.
I think the replacement should be done after the
JSON.Stringify
calls.Additionally, when entering
SomeText\nWith a newline
in the input boxes, the\n
will also be masked and be part of the slack message instead of creating a newline.Greetings, Florian
The text was updated successfully, but these errors were encountered: