Skip to content

Ignore line endings for testing --exclude-file contents #3290

@mdeweerd

Description

@mdeweerd

With --exclude-file, when the file with the line to be ignored has a CRLF line ending, the ignore does not work.

Adding a CR to the exclude-file does not help.

Run codespell -x exclude-file.txt test.html test2.html on the files in the test case.

codespell_tc_eol.zip

The expected result is no issues.

Tested with codespel 2.2.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions