We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-online
let a = // check if the current # char is part of an define expression // if so add to defines let captureHashDefine idx = if trimmed.StartsWith("#if") then defines.Add(processLine "#if" trimmed lineNumber offset) elif trimmed.StartsWith("#elseif") then defines.Add(processLine "#elseif" trimmed lineNumber offset) elif trimmed.StartsWith("#else") then defines.Add(processLine "#else" trimmed lineNumber offset) elif trimmed.StartsWith("#endif") then defines.Add(processLine "#endif" trimmed lineNumber offset) for idx in [ 0 .. lastIndex ] do let zero = sourceCode.[idx] let plusOne = sourceCode.[idx + 1] let plusTwo = sourceCode.[idx + 2] ()
Extra line is added because there is no else branch I think. Might be related to #1187
Fantomas Master at 10/26/2020
Default Fantomas configuration
The text was updated successfully, but these errors were encountered:
Don't add extra newline when no else expression is present. Fixes fsp…
8f82f2c
…rojects#1211. Fixes fsprojects#1187.
Don't add extra newline when no else expression is present. Fixes #1211…
f7b8f3a
…. Fixes #1187. (#1212)
Successfully merging a pull request may close this issue.
Issue created from fantomas-online
Code
Result
Problem description
Extra line is added because there is no else branch I think.
Might be related to #1187
Extra information
Options
Fantomas Master at 10/26/2020
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: