From 6034891fed9d27ac8c572660b489805d933fdfc4 Mon Sep 17 00:00:00 2001 From: ubertao Date: Mon, 17 Sep 2018 00:51:37 +0800 Subject: [PATCH] Support multi-line compliments. --- modules/default/compliments/compliments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/compliments/compliments.js b/modules/default/compliments/compliments.js index 74aef034..af3d6e34 100644 --- a/modules/default/compliments/compliments.js +++ b/modules/default/compliments/compliments.js @@ -160,7 +160,7 @@ Module.register("compliments", { var compliment = document.createTextNode(complimentText); var wrapper = document.createElement("div"); wrapper.className = this.config.classes ? this.config.classes : "thin xlarge bright"; - wrapper.appendChild(compliment); + wrapper.innerHTML = complimentText.replace(/\n/g, '
'); return wrapper; },