-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make test_contrasts.py ignore token.Whitespace (#1938)
With the VisibleWhitespaceFilter Pygments can be configured to replace whitespace characters like spaces, tabs and newlines with Unicode characters like ·, » and ¶ respectively. The min_contrast metric is meant to represent the readability of a style. Increasing it should mean that the style becomes more readable. This commit therefore excludes the token.Whitespace contrast from the min_contrast calculation, since giving whitespace characters a high contrast would make them so intrusive that they would actually hinder the readability of the source code.
- Loading branch information
1 parent
b489656
commit 4f676c7
Showing
2 changed files
with
18 additions
and
16 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