On Windows, use "abap" over "monokai" for the print theme

This commit is contained in:
Michael Mintz 2021-11-03 22:44:27 -04:00
parent 97ddb81e6c
commit be6a8b0da4
1 changed files with 5 additions and 1 deletions

View File

@ -570,11 +570,15 @@ def main():
used_width = code_width + extra_r_spaces
the_code = rich_helper.fix_emoji_spacing(the_code)
the_theme = "monokai"
platform = sys.platform
if "win32" in platform or "win64" in platform or "x64" in platform:
the_theme = "abap"
magic_syntax = rich_helper.process_syntax(
the_code,
code_lang,
theme="monokai",
theme=the_theme,
line_numbers=line_numbers,
code_width=used_width,
word_wrap=word_wrap,