Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding newline before first comment in module #784

Closed
ErikSchierboom opened this issue Apr 24, 2020 · 0 comments
Closed

Adding newline before first comment in module #784

ErikSchierboom opened this issue Apr 24, 2020 · 0 comments

Comments

@ErikSchierboom
Copy link
Contributor

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

module Basics

// TODO: define the 'expectedMinutesInOven' binding

// TODO: define the 'remainingMinutesInOven' function

// TODO: define the 'preparationTimeInMinutes' function

// TODO: define the 'totalTimeInMinutes' function

Result

module Basics


// 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
@ErikSchierboom 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
@nojaf nojaf closed this as completed May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants