Make cleanupSource remove extra trailing whitespace.

Former-commit-id: 4b805471336e3259b45a51e1a5f1bea62d66bd94
This commit is contained in:
John-David Dalton
2013-06-30 00:13:33 -07:00
parent 33f1f9abde
commit 317f888383

View File

@@ -861,7 +861,9 @@
// remove lines with just whitespace and semicolons // remove lines with just whitespace and semicolons
.replace(/^ *;\n/gm, '') .replace(/^ *;\n/gm, '')
// consolidate multiple newlines // consolidate multiple newlines
.replace(/\n{3,}/g, '\n\n'); .replace(/\n{3,}/g, '\n\n')
// add trailing newline
.trim() + '\n'
} }
/** /**