-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up options expecting lists before using them, as they may contain newlines. Examples: * Enclosing command-line arguments in quotes may introduce newlines in option values: $ codespell -S "A, B, > C, D, E" * INI files may contain multiline values: [codespell] skip = A, B, C, D, E, In all the above cases, the option parsing mechanism keeps the newlines (and spaces). We need to clean up, by splitting on commas and stripping each resulting item from newlines (and spaces).
- Loading branch information
1 parent
69c0f00
commit 9c29387
Showing
2 changed files
with
45 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters