Skip to content

MaxIfThenElseShortWidth is not respected #734

Closed
@nojaf

Description

Issue created from fantomas-ui

This expression exceeds the MaxIfThenElseShortWidth setting but is still formatted on one line.

Code

if longExpressionMakingTheIfElseMultiline then answerWhenTheConditionIsTrue else answerWhenTheConditionIsFalse

Result

if longExpressionMakingTheIfElseMultiline then answerWhenTheConditionIsTrue else answerWhenTheConditionIsFalse

Options

Fantomas Next - 3.3.0-3/26/2020

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeClassConstructor false
SpaceBeforeColon false
SpaceBeforeLowercaseInvocation true
SpaceBeforeMember false
SpaceBeforeParameter true
SpaceBeforeSemicolon false
SpaceBeforeUppercaseInvocation false
StrictMode false

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions