Don't number lines that end in backslash.

Fixes #1326
This commit is contained in:
Emily Stark
2013-08-20 11:14:44 -07:00
parent 8b13f53cf4
commit bfc7f22dc0

View File

@@ -355,7 +355,7 @@ _.extend(File.prototype, {
_.each(lines, function (line) {
var suffix = "\n";
if (line.length <= width) {
if (line.length <= width && line[line.length - 1] !== "\\") {
suffix = padding.slice(line.length, width) + " // " + num + "\n";
}
f(line, suffix, num);