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

Some unicode control characters are incorrectly formatted #506

Closed
michael-mwp opened this issue Oct 11, 2019 · 0 comments
Closed

Some unicode control characters are incorrectly formatted #506

michael-mwp opened this issue Oct 11, 2019 · 0 comments

Comments

@michael-mwp
Copy link

michael-mwp commented Oct 11, 2019

Issue created from fantomas-ui

Some unicode control characters are incorrectly formatted resulting in uncompilable code.
Issue identified with the backspace and formfeed characters.

This bug has been introduced in v3.0.0

Code

namespace SomeNamespace

module SomeModule =
    let backspace = '\b'
    let formFeed = '\f'

Error

namespace SomeNamespace

module SomeModule =
    let backspace = '�'
    let formFeed = ''

Options

Fantomas 3.0.0-10/11/2019

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
nojaf added a commit to nojaf/fantomas that referenced this issue Oct 12, 2019
nojaf added a commit that referenced this issue Oct 12, 2019
@nojaf nojaf closed this as completed Oct 14, 2019
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

No branches or pull requests

2 participants