line_formatted -> valid so tags don't cause us to subvert truncation

This commit is contained in:
jesopo 2019-06-18 18:14:04 +01:00
parent 1cbc2ce31b
commit c463fa20a4

View file

@ -131,7 +131,7 @@ class ParsedLine(object):
valid = line_formatted[:valid_index]
if tags_formatted:
valid = "%s %s" % (tags_formatted, line_formatted)
valid = "%s %s" % (tags_formatted, valid)
overflow = line_formatted[valid_index:]
return valid, overflow