fsprojects / fantomas

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

Triple-quoted string literals become single-quoted (even if they contain quotes) #300

Closed piaste closed 5 years ago

piaste commented 6 years ago
        printfn """    /// Arguments are statically typed (like printf). Ex. Log.%sf("Key %%s n. %%i", "asdasd", 10)""" level

==>

        printfn 
          "    /// Arguments are statically typed (like printf). Ex. Log.%sf("Key %%s n. %%i", "asdasd", 10)" 
          level

which fails to compile due to the single quotes breaking the string literal.

nojaf commented 5 years ago

@piaste is this still an issue, seems to work in online tool?

Perhaps more input is needed to reproduce, couldn't find any traces of a commit that fixed this problem.

piaste commented 5 years ago

I tried it now and it works, the triple quotes are preserved. 👍