Skip to content

Commit 2d6919c

Browse files
author
tim
committed
fixes incorrect indentation that could happen with tabs
1 parent 897a70a commit 2d6919c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/printer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ function genericPrintNoParens(path: any, options: any, print: any) {
676676
argLines = path.call(print, "argument");
677677
n.argument.extra.parenthesized = true;
678678
}
679-
parts.push(" (\n", argLines.indent(options.tabWidth), "\n)");
679+
parts.push(" ", concat(["(\n", argLines]).indentTail(options.tabWidth), "\n)");
680680
} else {
681681
parts.push(" ", argLines);
682682
}

0 commit comments

Comments
 (0)