Added new case for breaklines

This commit is contained in:
perroned 2014-08-19 08:37:16 -07:00
parent 002370c70a
commit 11b8a51e27

View File

@ -156,6 +156,7 @@ Template.tabButtons.helpers
Template.message.helpers Template.message.helpers
activateBreakLines: (str) -> activateBreakLines: (str) ->
res = str.replace /\n/gim, '<br/>' res = str.replace /\n/gim, '<br/>'
res = str.replace /\r/gim, '<br/>'
getHexColor: (c) -> getHexColor: (c) ->
if parseInt(c).toString(16).length is 4 if parseInt(c).toString(16).length is 4