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

Extra newline is added between attribute and member #933

Closed
nojaf opened this issue Jun 26, 2020 · 0 comments · Fixed by #934
Closed

Extra newline is added between attribute and member #933

nojaf opened this issue Jun 26, 2020 · 0 comments · Fixed by #934

Comments

@nojaf
Copy link
Contributor

nojaf commented Jun 26, 2020

Issue created from fantomas-online

This problem occurs when there are three attributes, looks like a trivia bug of sorts.

Code

[<AllowNullLiteral>]
type SubGroupStackOptions =
    [<Emit "$0[$1]{{=$2}}">]
    abstract Item: name:string -> bool with get, set

[<AllowNullLiteral>]
type DataGroup =
    abstract className: string option with get, set
    abstract content: string with get, set
    abstract id: IdType with get, set
    abstract options: DataGroupOptions option with get, set
    abstract style: string option with get, set
    abstract subgroupOrder: U2<string, unit -> unit> option with get, set
    abstract title: string option with get, set
    abstract nestedGroups: ResizeArray<IdType> option with get, set
    abstract subgroupStack: U2<SubGroupStackOptions, bool> option with get, set
    abstract visible: bool option with get, set
    abstract showNested: bool option with get, set

Result

[<AllowNullLiteral>]
type SubGroupStackOptions =
    [<Emit "$0[$1]{{=$2}}">]

    abstract Item: name:string -> bool with get, set

[<AllowNullLiteral>]
type DataGroup =
    abstract className: string option with get, set
    abstract content: string with get, set
    abstract id: IdType with get, set
    abstract options: DataGroupOptions option with get, set
    abstract style: string option with get, set
    abstract subgroupOrder: U2<string, unit -> unit> option with get, set
    abstract title: string option with get, set
    abstract nestedGroups: ResizeArray<IdType> option with get, set
    abstract subgroupStack: U2<SubGroupStackOptions, bool> option with get, set
    abstract visible: bool option with get, set
    abstract showNested: bool option with get, set

Options

Fantomas Master at 06/25/2020 19:44:57 - db526ab

Name Value
IndentSpaceNum 4
PageWidth 120
SemicolonAtEndOfLine false
SpaceBeforeParameter true
SpaceBeforeLowercaseInvocation true
SpaceBeforeUppercaseInvocation false
SpaceBeforeClassConstructor false
SpaceBeforeMember false
SpaceBeforeColon false
SpaceAfterComma true
SpaceBeforeSemicolon false
SpaceAfterSemicolon true
IndentOnTryWith false
SpaceAroundDelimiter true
MaxIfThenElseShortWidth 40
MaxInfixOperatorExpression 50
MaxRecordWidth 40
MaxArrayOrListWidth 40
MaxValueBindingWidth 40
MaxFunctionBindingWidth 40
MultilineBlockBracketsOnSameColumn false
NewlineBetweenTypeDefinitionAndMembers false
KeepIfThenInSameLine false
MaxElmishWidth 40
SingleArgumentWebMode false
StrictMode false
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

Successfully merging a pull request may close this issue.

1 participant