diff --git a/main.go b/main.go
index 6f6ce82..de1485c 100644
--- a/main.go
+++ b/main.go
@@ -171,11 +171,31 @@ func card(d templateData) ([]byte, error) {
//}`
if d.Status == "success" {
- d.Add = "{\"decoratedText\": {\"startIcon\": {\"materialIcon\": {\"name\": \"check_circle\"}},\"text\": \"SUCCESS\"}},"
+ d.Add = `
+{
+ "decoratedText": {
+ "startIcon": {
+ "materialIcon": {
+ "name": "check_circle"
+ }
+ },
+ "text": "SUCCESS"
+ }
+},`
}
if d.Status == "failure" {
- d.Add = "{\"decoratedText\": {\"startIcon\": {\"materialIcon\": {\"name\": \"stop_circle\"}},\"text\": \"FAILURE\"}},"
+ d.Add = `
+{
+ "decoratedText": {
+ "startIcon": {
+ "materialIcon": {
+ "name": "stop_circle"
+ }
+ },
+ "text": "FAILURE"
+ }
+},`
}
tpl := `
@@ -188,7 +208,6 @@ func card(d templateData) ([]byte, error) {
"title": "{{ .Title }}",
"subtitle": "{{ .SubTitle }}",
"imageUrl": "{{ .IconUrl }}",
- "imageStyle": "IMAGE",
"imageType": "SQUARE"
},
"sections": [