Gleam: Formatter inserting extra newlines

Created on 19 May 2020  路  3Comments  路  Source: gleam-lang/gleam

///    > length("脽鈫慹虋")
pub external fn length(String) -> Int =
  "string" "length"

type Direction {
  Leading
  Trailing
  Both
}

gets formatted to:

///    > length("脽鈫慹虋")
pub external fn length(String) -> Int =
  "string" "length"

type Direction {

  Leading
  Trailing
  Both
}

This formats fine ("normal" vs "脽鈫慹虋")

///    > length("normal")
pub external fn length(String) -> Int =
  "string" "length"

type Direction {
  Leading
  Trailing
  Both
}
bug

All 3 comments

I think I have fixed this now in master and 0.8.1. Could you test that out? Thank you.

Seems to be fixed on master

Thank you!

Was this page helpful?
0 / 5 - 0 ratings