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

Missing space after multiline string #754

Closed
nojaf opened this issue Apr 16, 2020 · 1 comment · Fixed by #756
Closed

Missing space after multiline string #754

nojaf opened this issue Apr 16, 2020 · 1 comment · Fixed by #756

Comments

@nojaf
Copy link
Contributor

nojaf commented Apr 16, 2020

Issue created from fantomas-ui

The code does not compile anymore if there is only one space before the config.

Code

[<Test>]
let ``attribute on module after namespace`` () =
    formatSourceString false """namespace SomeNamespace

[<AutoOpen>]
module Types =
    let a = 5
"""  config
    |> prepend newline
    |> should equal """
namespace SomeNamespace

[<AutoOpen>]
module Types =
    let a = 5
"""

Result

[<Test>]
let ``attribute on module after namespace`` () =
    formatSourceString false """namespace SomeNamespace

[<AutoOpen>]
module Types =
    let a = 5
""" config
    |> prepend newline
    |> should equal """
namespace SomeNamespace

[<AutoOpen>]
module Types =
    let a = 5
"""

Options

Fantomas Next - 3.3.0-4/8/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
@nojaf
Copy link
Contributor Author

nojaf commented Apr 16, 2020

Feels related to #545

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