We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a9eca9 commit e247c55Copy full SHA for e247c55
packages/deparser/src/deparser.ts
@@ -2631,10 +2631,7 @@ export class Deparser implements DeparserVisitor {
2631
if (this.formatter.isPretty()) {
2632
const checkExpr = this.visit(node.raw_expr, context);
2633
if (checkExpr.includes('\n')) {
2634
- const indentedExpr = checkExpr.split('\n').map(line =>
2635
- ' ' + line
2636
- ).join('\n');
2637
- output.push('(\n' + indentedExpr + '\n)');
+ output.push('(\n' + this.formatter.indent(checkExpr) + '\n)');
2638
} else {
2639
output.push(`(${checkExpr})`);
2640
}
0 commit comments