-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
\t replaced by ASCII 9 on save when formatOnSave is enabled #1534
Comments
Hey @stanciuadrian 👋, Thank you for opening an issue. We will get back to you as https://opencollective.com/ionide
|
Cc: @nojaf |
I do think this is in fantomas. The same source code in the v4 tools shows that the formatted text includes an additional apsace after the |
This is Fantomas' doing indeed. In short, the string was not recognized as trivia so the string from the AST was printed back out. |
This was fixed in Fantomas. |
Describe the bug**
Escaped tabs (
\t
) are replaced by ASCII 9 if formatOnSave is enabled and Save is triggered.Fantomas [configuration] issue?
Steps to reproduce
"editor.formatOnSave": true
printfn "Hello\tWorld"
printfn "Hello World"
. A single\t
is displayed as 1/2/3/4 spaces.Expected behaviour
Escape sequences should not be replaced.
Screenshots
Machine info
Edit: rewording
The text was updated successfully, but these errors were encountered: