Skip to content

Commit

Permalink
fix disappearing newlines in parens
Browse files Browse the repository at this point in the history
  • Loading branch information
dm0n3y committed Feb 14, 2025
1 parent 5725630 commit 80a2ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/parser/Linter.re
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let rec repad = (~l=Delim.root, ~r=Delim.root, c: Cell.t) => {
Chain.map_hd(Cell.Space.merge(c, ~fill=Cell.empty), acc);
switch (tok) {
| {mtrl: Space(_), text: " ", _} when height > 0 => drop()
| {mtrl: Space(White(_)), _}
| {mtrl: Space(White(_)), text: " ", _}
when
no_pad || height == 0 && Result.is_ok(Chain.unlink(acc)) =>
drop()
Expand Down

0 comments on commit 80a2ae2

Please sign in to comment.