lang-check: respect --no-warning

This commit is contained in:
Yuri D'Elia 2021-04-23 22:49:00 +02:00
parent fe32d42101
commit 2ceb3897f1

View file

@ -113,6 +113,7 @@ def parse_txt(lang, no_warning):
#End wrap text
# Check for potential errors in the definition
if not no_warning:
if rows == 1 and (len(source) > cols or rows_count_source > rows):
print(yellow('[W]: Source text longer than %d cols as defined on line %d:' % (cols, lines)))
print_truncated(source, cols)