Don't trim whitespace from end of lines.
This commit is contained in:
parent
7a7e90037b
commit
bb4bc115b9
@ -5,7 +5,7 @@ module.exports = (grunt) ->
|
|||||||
"`#{JSON.stringify(data).replace(/`/g, '\\`')}`"
|
"`#{JSON.stringify(data).replace(/`/g, '\\`')}`"
|
||||||
|
|
||||||
importHTML = (filename) ->
|
importHTML = (filename) ->
|
||||||
"(innerHTML: #{json grunt.file.read("src/General/html/#{filename}.html").replace(/^ +| +$</gm, '').replace(/\r?\n/g, '')})"
|
"(innerHTML: #{json grunt.file.read("src/General/html/#{filename}.html").replace(/^ +/gm, '').replace(/\r?\n/g, '')})"
|
||||||
|
|
||||||
html = (template) ->
|
html = (template) ->
|
||||||
parts = template.split /([\$&@]){([^}`]*)}/
|
parts = template.split /([\$&@]){([^}`]*)}/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user