Replaced native .trim() because IE8 is not supporting it.

This commit is contained in:
Martin Edenhofer 2012-11-29 21:17:50 +01:00
parent 6ee8429a9e
commit acfd321d5a

View file

@ -440,7 +440,7 @@ class Article extends App.Controller
# build html body
# cleanup body
# @article['html'] = @article.body.trim()
@article['html'] = $.trim( @article.body.trim() )
@article['html'] = $.trim( @article.body )
@article['html'].replace( /\n\r/g, "\n" )
@article['html'].replace( /\n\n\n/g, "\n\n" )