You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When formatting a module without any let bindings in it but only some comments, an additional newline is added before the comment. If I add a let before the comment or add a let between comments, things work as expected.
Code
moduleBasics// TODO: define the 'expectedMinutesInOven' binding// TODO: define the 'remainingMinutesInOven' function// TODO: define the 'preparationTimeInMinutes' function// TODO: define the 'totalTimeInMinutes' function
Result
moduleBasics// TODO: define the 'expectedMinutesInOven' binding// TODO: define the 'remainingMinutesInOven' function// TODO: define the 'preparationTimeInMinutes' function// TODO: define the 'totalTimeInMinutes' function
Options
Fantomas 3.2.0
Name
Value
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
false
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeArgument
true
SpaceBeforeColon
false
StrictMode
false
The text was updated successfully, but these errors were encountered:
ErikSchierboom
changed the title
[Bug report from fantomas-ui] Adding newline before first comment in module
Adding newline before first comment in module
Apr 24, 2020
Issue created from fantomas-ui
When formatting a module without any
let
bindings in it but only some comments, an additional newline is added before the comment. If I add a let before the comment or add a let between comments, things work as expected.Code
Result
Options
Fantomas 3.2.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
false
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeArgument
true
SpaceBeforeColon
false
StrictMode
false
The text was updated successfully, but these errors were encountered: