Have build remove trailing spaces in lines.

Former-commit-id: 580650186c9661b900ebbe846e13ba194fd2c0bc
This commit is contained in:
John-David Dalton
2013-08-07 19:38:52 -07:00
parent 3d4f58d564
commit 7371f8927c
4 changed files with 28 additions and 28 deletions

View File

@@ -1135,10 +1135,10 @@
})
// remove unneeded horizontal rule comment separators
.replace(/(\{\n)\s*\/\*-+\*\/\n|^ *\/\*-+\*\/\n(\s*\})/gm, '$1$2')
// remove extraneous whitespace
.replace(/^ *\n/gm, '\n')
// remove lines with just whitespace and semicolons
// remove lines with just spaces and semicolons
.replace(/^ *;\n/gm, '')
// remove trailing spaces from lines
.replace(/ *$/gm, '')
// consolidate multiple newlines
.replace(/\n{3,}/g, '\n\n')
// add trailing newline