Skip to content

Commit a02e450

Browse files
committed
Update console scripts
1 parent 61384e4 commit a02e450

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

seleniumbase/console_scripts/sb_print.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,13 @@ def main():
342342
if console_width and (code_width + extra_r_spaces < console_width):
343343
used_width = code_width + extra_r_spaces
344344

345+
try:
346+
if "🗺️" in the_code:
347+
# Fix width of an emoji
348+
the_code = the_code.replace("🗺️", "🗺️ ")
349+
except Exception:
350+
pass
351+
345352
magic_syntax = Syntax(
346353
the_code, code_lang, theme="monokai",
347354
line_numbers=line_numbers, code_width=used_width,

0 commit comments

Comments
 (0)