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('