Skip to content

Commit f30363f

Browse files
authored
fix: remove redundant line break at end (#1523)
1 parent 1704c2b commit f30363f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/src/sas/formatter/printer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ export const print: Printer<SASAST>["print"] = (path, options, print) => {
5252
? [hardline, ...region]
5353
: region;
5454
}
55+
children[children.length - 1] = utils.stripTrailingHardline(
56+
children[children.length - 1],
57+
);
5558
return [...join(line, children), literalline];
5659
}
5760
return "text" in node ? node.text : "";

0 commit comments

Comments
 (0)