fsprojects / fantomas

FSharp source code formatter
https://fsprojects.github.io/fantomas
Other
772 stars 194 forks source link

\n in single-quoted string literals gets turned into newline #299

Closed piaste closed 5 years ago

piaste commented 6 years ago
      |> Array.fold (fun s t -> sprintf "%s\n - %s" s t) ""

became

      |> Array.fold (fun s t -> 
           sprintf "%s
 - %s" s t) ""

which causes a syntax error.

nojaf commented 5 years ago

Could not reproduce anymore online.

Please re-open if still an issue.