diff options
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/helpers/view_helper.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/web-ui/app/js/helpers/view_helper.js b/web-ui/app/js/helpers/view_helper.js index 7173d8be..845c1190 100644 --- a/web-ui/app/js/helpers/view_helper.js +++ b/web-ui/app/js/helpers/view_helper.js @@ -32,9 +32,7 @@ define( } function addParagraphsToPlainText(textPlainBody) { - return _.map(textPlainBody.split('\n'), function (paragraph) { - return '<p>' + paragraph + '</p>'; - }).join(''); + return textPlainBody.replace(/^(.*?)$/mg, "<p>$1</p>") } function formatMailBody (mail) { |