gleam: Formatter should not remove single-line breaks and should make multi-line ones into single-line.
Formatter should not remove single-line breaks, except for those within a multi-line expression. Also, it should make multi-line ones into single-line.
For example:
let a = "abc"
io.println(a)
should remain intact, while
let a = "abc"
io.println(a)
should be transformed into the former.
Meanwhile
iterator.from_list([1, 2, 3])
  |> iterator.first
  |> should.equal(Ok(1))
should be transformed into
iterator.from_list([1, 2, 3])
  |> iterator.first
  |> should.equal(Ok(1))
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 20 (20 by maintainers)
Sounds good! Could you open an issue for that please? Thanks
I’m using the gleam version, compiled from the main branch on commit
a6ab232https://github.com/gleam-lang/gleam/assets/25585136/c9e476d4-7ab5-43a6-9fd7-fafc528bed9e
I get no changes. The out-the-box CI workflow of all Gleam packages verifies there are no changes too.