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

invalid code generated after multiline string when other expressions exist on same line #545

Closed
smoothdeveloper opened this issue Oct 27, 2019 · 0 comments · Fixed by #546

Comments

@smoothdeveloper
Copy link
Contributor

Issue created from fantomas-ui

the spacing before last usage of s is important, it has to be greater than left column of the printfn function call:

Code

let a s =
    if s <> "" then
        printfn """fooo
%s"""    s

Error

let a s =
    if s <> "" then
        printfn """fooo
%s""" s

Options

Fantomas 3.0.0

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeArgument true
SpaceBeforeColon false
StrictMode false

More information

Related issue: #513

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