Skip to content

Commit

Permalink
Merge pull request #30 from nixwiz/expand_newlines
Browse files Browse the repository at this point in the history
Add suppoort for expanding newlines (\n) in description template
  • Loading branch information
Caleb Hailey authored May 18, 2020
2 parents f01880e + 19890a8 commit 5cabbe8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed
- Support for newline (\n) expansion in description template

## [1.3.1] - 2020-03-30

### Changed
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ func messageAttachment(event *corev2.Event) *slack.Attachment {
if err != nil {
fmt.Errorf("Error processing template: %s", err)
}
description = strings.Replace(description, `\n`, "\n", -1)
attachment := &slack.Attachment{
Title: "Description",
Text: description,
Expand Down

0 comments on commit 5cabbe8

Please sign in to comment.