From c7c565425af51a71dc560f651a5cee975c6a254f Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Sun, 28 Dec 2014 20:06:47 +0100 Subject: [PATCH] Improved formatting of text messages. --- app/assets/javascripts/app/controllers/ticket_zoom.js.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee index 485f34f20..76cfec859 100644 --- a/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee +++ b/app/assets/javascripts/app/controllers/ticket_zoom.js.coffee @@ -1518,7 +1518,8 @@ class Article extends App.Controller # @article['html'] = @article.body.trim() @article['html'] = $.trim( @article.body ) @article['html'].replace( /\n\r/g, "\n" ) - @article['html'].replace( /\n\n\n/g, "\n\n" ) + @article['html'].replace( /\r/g, "\n" ) + @article['html'].replace( /\n\n/g, "\n" ) # if body has more then x lines / else search for signature preview = 10