Merge pull request #403 from sundar-raman/master

Disable colorized output when CHEATCOLORS is not "true", or not set
This commit is contained in:
Chris Allen Lane 2019-01-11 14:13:21 -05:00 committed by GitHub
commit 35c4a8d639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ def colorize(sheet_content):
""" Colorizes cheatsheet content if so configured """
# only colorize if so configured
if not 'CHEATCOLORS' in os.environ:
if not 'CHEATCOLORS' in os.environ or os.environ.get('CHEATCOLORS') != 'true':
return sheet_content
try: