From d264afed5ea5ed3a195ef1359037b8ebbd885b2d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 27 Mar 2019 18:24:22 +0100 Subject: [PATCH] Replace \n by
to display newlines correctly --- src/js/yunohost/helpers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index 34fd1d1a..39575231 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -33,6 +33,8 @@ level = 'log'; } + message = message.split("\n").join("
"); + // Add message $('#flashMessage .messages') .prepend('
'+