src/nodes/statements.js in prettier-0.15.1 vs src/nodes/statements.js in prettier-0.16.0
- old
+ new
@@ -5,11 +5,10 @@
hardline,
indent,
join,
line,
literalline,
- markAsRoot,
softline,
trim
} = require("../prettier");
module.exports = {
@@ -64,12 +63,10 @@
concat([softline, ")"])
])
);
},
program: (path, opts, print) =>
- markAsRoot(
- concat([join(literalline, path.map(print, "body")), literalline])
- ),
+ concat([join(hardline, path.map(print, "body")), hardline]),
stmts: (path, opts, print) => {
const stmts = path.getValue().body;
const parts = [];
let lineNo = null;