Skip to content

Commit 070b941

Browse files
committed
1 parent bec69d0 commit 070b941

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/printer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4256,13 +4256,13 @@ function printAstToDoc(ast, options, addIndents) {
42564256
);
42574257
}
42584258

4259-
const doc = printGenerically(FastPath.from(ast));
4260-
docUtils.propagateBreaks(doc);
4259+
let doc = printGenerically(FastPath.from(ast));
42614260
if (addIndents > 0) {
42624261
// Add a hardline to make the indents take effect
42634262
// It should be removed in index.js format()
4264-
return addIndentsToDoc(concat([hardline, doc]), addIndents);
4263+
doc = addIndentsToDoc(concat([hardline, doc]), addIndents);
42654264
}
4265+
docUtils.propagateBreaks(doc);
42664266
return doc;
42674267
}
42684268

0 commit comments

Comments
 (0)