Improved formatting of text messages.

This commit is contained in:
Martin Edenhofer 2014-12-28 20:06:47 +01:00
parent 76adce246a
commit c7c565425a

View file

@ -1518,7 +1518,8 @@ class Article extends App.Controller
# @article['html'] = @article.body.trim() # @article['html'] = @article.body.trim()
@article['html'] = $.trim( @article.body ) @article['html'] = $.trim( @article.body )
@article['html'].replace( /\n\r/g, "\n" ) @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 # if body has more then x lines / else search for signature
preview = 10 preview = 10