lang-check: highlight truncated strings

This commit is contained in:
Yuri D'Elia 2021-04-23 15:49:19 +02:00
parent 7f9910ad28
commit 27d7edae10

View File

@ -44,7 +44,7 @@ def print_truncated(text, cols):
suffix = '' suffix = ''
else: else:
prefix = text[0:cols] prefix = text[0:cols]
suffix = text[cols:] suffix = color_maybe(31, text[cols:])
print(' |' + prefix + '|' + suffix) print(' |' + prefix + '|' + suffix)