diff --git a/web/src/components/inputs/FormatedText.vue b/web/src/components/inputs/FormatedText.vue
index 68eac41..89dee51 100644
--- a/web/src/components/inputs/FormatedText.vue
+++ b/web/src/components/inputs/FormatedText.vue
@@ -25,7 +25,7 @@ export default {
methods: {
rawhtml(value) {
if (typeof this.format === 'function') {
- return this.format(value).replace(/ /g, ' ');
+ return this.format(value.replace(/ /g, ' '));
} else {
return value;
}
diff --git a/web/src/views/admin/Settings.vue b/web/src/views/admin/Settings.vue
index 76c7a2e..0282001 100644
--- a/web/src/views/admin/Settings.vue
+++ b/web/src/views/admin/Settings.vue
@@ -28,7 +28,7 @@ export default {
...mapActions(['fetchMessageTemplates', 'fetchMessageTemplateVariables']),
formatText(value) {
return value.replace(/{{(.+?)}}/g, (match, key) => {
- return `{{ ${key} }}`;
+ return `{{${key}}}`;
}).replace(/\n/g, '
').replace(/\t/g, ' ');
},
changeMessageTemplate(id, message) {