Skip to content

Commit 5e008db

Browse files
committed
Added end arg to print_trunc() ↞ [auto-sync from https://github.com/adamlui/python-utils]
1 parent ac5f126 commit 5e008db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chromium/utils/remove-json-keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Script: remove-json-keys.py
3-
Version: 2023.9.21
3+
Version: 2025.2.7
44
Description: Remove key/value pairs from json_folder/**.json
55
Author: Adam Lui
66
URL: https://github.com/adamlui/python-utils
@@ -13,7 +13,7 @@
1313
# UI initializations
1414
os.system('color') ; print('\033[0;92m') # set font to bright green
1515
terminal_width = os.get_terminal_size()[0]
16-
def print_trunc(msg) : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...')
16+
def print_trunc(msg, end='\n') : print(msg if len(msg) < terminal_width else msg[0:terminal_width-4] + '...', end=end)
1717

1818
print('')
1919

0 commit comments

Comments
 (0)