lang-check: highlight truncated strings
This commit is contained in:
parent
7f9910ad28
commit
27d7edae10
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user