now it looks fantastic. Nothing under!

This commit is contained in:
didier.amyot committed 2014-05-09 16:45:23 -04:00
1 parent a72347d1e3
commit 59813e906e
15 files changed
+130 -16

No files matched your search

+8 -1
View File
@@ -14,4 +14,11 @@ root.filters.filter 'niceJSON', () ->
root.filters.filter 'replaceReturnByBreak', () ->
return (text) ->
return text.replace(new RegExp("\n","g"), "<br>")
return text.replace(new RegExp("\n","g"), "<br>")
root.filters.filter 'onlyNthLines', () ->
return (text, n) ->
if not _.isString(text)
return ""
s = text.split("\n")
return s[0...n].join("\n")