Skip to content

Many formatters inserts ^M (\r, CR) at the end of each line on windows. #293

Description

@jmwielandt

Before proceeding
If you modified the configuration yourself, check that you tried options such as no_append or ignore_exitcode, and also, if you can, try to run the configuration in your shell.

Shell command and output (optional):

Which configuration? (at least:)
Type (custom or builtin): builtin
Filetype: markdown
Formatter: prettier

Configuration(s) (post all the variants you tried): no variants.

Expected behavior

Formatter respect my LF file on windows.

Actual behaviour

Formatter adds a ^M char at the end of each line.

Additional context
Add any other context about the problem here.

I don't remember which formatter was, but other than prettier on markdown did the same thing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions