Closed henriblancke closed 4 years ago
Not really... Trim just removes surrounding line breaks which is totally fine, it doesn't remove new lines within the content.
@tboerger gotcha! Looked closer at drone-template-lib
now and indeed that is not what we need... I've updated the PR with a fix that should propagate the new lines to slack now. It works for me locally but please test and let me know if you run into any issues!
If the parser doesn't provide proper new lines that sounds like an upstream issue. /cc @bradrydzewski
agreed, any change to the trim function needs to be made upstream to drone-template-lib.
Potential solution for https://github.com/drone-plugins/drone-slack/issues/30? It would help create cleaner slack templates without redundant line breaks.