Skip to content

Commit be6a8b0

Browse files
committed
On Windows, use "abap" over "monokai" for the print theme
1 parent 97ddb81 commit be6a8b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

seleniumbase/console_scripts/sb_print.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,11 +570,15 @@ def main():
570570
used_width = code_width + extra_r_spaces
571571

572572
the_code = rich_helper.fix_emoji_spacing(the_code)
573+
the_theme = "monokai"
574+
platform = sys.platform
575+
if "win32" in platform or "win64" in platform or "x64" in platform:
576+
the_theme = "abap"
573577

574578
magic_syntax = rich_helper.process_syntax(
575579
the_code,
576580
code_lang,
577-
theme="monokai",
581+
theme=the_theme,
578582
line_numbers=line_numbers,
579583
code_width=used_width,
580584
word_wrap=word_wrap,

0 commit comments

Comments
 (0)