Skip to content
Snippets Groups Projects
Commit 960d348c authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Convert line breaks to <br/> fixes #144

parent febb9811
No related branches found
No related tags found
No related merge requests found
...@@ -12,7 +12,11 @@ Template.chatMessageDashboard.helpers ...@@ -12,7 +12,11 @@ Template.chatMessageDashboard.helpers
return this._id is Session.get('editingMessageId') return this._id is Session.get('editingMessageId')
autolinkerAndMentions: -> autolinkerAndMentions: ->
msg = Autolinker.link(_.stripTags(this.msg), { stripPrefix: false, twitter: false }) msg = this.msg
msg = Autolinker.link(_.stripTags(msg), { stripPrefix: false, twitter: false })
msg = msg.replace /\n/g, '<br/>'
if not this.mentions? or this.mentions.length is 0 if not this.mentions? or this.mentions.length is 0
return msg return msg
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment