From 41d372acdd47ec6d7ef11ad527f34c07fe3d28a4 Mon Sep 17 00:00:00 2001 From: Carlo Costanzo Date: Mon, 8 Jun 2020 15:25:35 -0400 Subject: [PATCH] Update Clean Macros Replaces all underscores with spaces for Alexa. --- config/packages/notify.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/packages/notify.yaml b/config/packages/notify.yaml index fb6c36e..920eccf 100755 --- a/config/packages/notify.yaml +++ b/config/packages/notify.yaml @@ -1127,10 +1127,10 @@ script: ] | random }} {%- endmacro -%} - {# a macro that removes all newline characters, empty spaces, and returns formatted text #} + {# a macro that removes all newline characters, empty spaces, and returns formatted text. Also replaces all Underscores with Spaces #} {%- macro cleanup(data) -%} {%- for item in data.split("\n") if item | trim != "" -%} - {{ item | trim }} {% endfor -%} + {{ item | trim | replace("_", " ") }} {% endfor -%} {%- endmacro -%} {# ********************************************* #}