drahnr / cargo-spellcheck

Checks all your documentation for spelling and grammar mistakes with hunspell and a nlprule based checker for grammar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Newlines are not preserved

drahnr opened this issue · comments

Describe the bug

When the fixes are applied, all newlines are convert to \n.

To Reproduce

Steps to reproduce the behaviour:

  1. A file containing \n\r or \r
  2. Run cargo spellcheck fix
  3. Check newlines from a capable editor

Expected behavior

Preserve the newlines that were there initially

Please complete the following information:

  • System: Linux
  • Obtained: git
  • Version: git