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

Unclear edge situation #2773

Closed
buhtz opened this issue Mar 8, 2023 · 2 comments
Closed

Unclear edge situation #2773

buhtz opened this issue Mar 8, 2023 · 2 comments

Comments

@buhtz
Copy link

buhtz commented Mar 8, 2023

First I thought that codespell isn't able to handle newlines but it is. This gives no error:

$ echo exist\nin | codespell -

But this gives me an error:

$ echo "exist\nin" | codespell -
1: exist\nin
        nin ==> inn, min, bin, nine

Do you have an idea why it is that way?

I experienced that problem in my production code. The original line can be found here

https://github.com/bit-team/backintime/blob/e22c7f253fa048fab9119f4cbea34c0fa8d1aba6/qt/app.py#L342

@DimitriPapadopoulos
Copy link
Collaborator

Codespell is not able to handle “newlines” the way you think it might. See #17.

This is actually a shell question, not a codespell question, and it has nothing to do with newlines:

$ echo exist\nin
existnin
$ 
$ echo "exist\nin"
exist\nin
$ 
$ echo exist\\nin
exist\nin
$ 

@DimitriPapadopoulos
Copy link
Collaborator

Have a look at #1774 (comment).

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

No branches or pull requests

2 participants