now it looks fantastic. Nothing under!
This commit is contained in:
1 parent
a72347d1e3
commit
59813e906e
15 files changed
+130
-16
No files matched your search
@@ -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")
|
||||
Reference in new issue
Block a user