You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ignore-multiline-regex is set in config, and I run codespell -w, it removes newlines in edited files, which results in files being reformatted to a single line.
$ echo -e "Thsi line contains a typo\nWhile this line is correct" > test.txt
$ cat test.txt
Thsi line contains a typo
While this line is correct
$ codespell test.txt
> Thsi line contains a typo
test.txt:1: Thsi ==> This
$ codespell test.txt -w --ignore-multiline-regex="codespell:ignore-begin.*codespell:ignore-end"
FIXED: test.txt
$ cat test.txt
$ cat test.txt
This line contains a typoWhile this line is correct
The text was updated successfully, but these errors were encountered:
spetrosi
changed the title
With ignore-multiline-regex set, --write doesn't work properly
bug: With ignore-multiline-regex set, --write doesn't work properly
Feb 12, 2025
When
ignore-multiline-regex
is set in config, and I runcodespell -w
, it removes newlines in edited files, which results in files being reformatted to a single line.The text was updated successfully, but these errors were encountered: