allow tabstops as whitespace before input file comments (#2808)

This commit is contained in:
Mike Fährmann 2022-08-11 12:39:19 +02:00
parent 1c89ccb27d
commit 764906e1af
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -97,6 +97,8 @@ def parse_inputfile(file, log):
# url
if " #" in line:
line = line.partition(" #")[0]
elif "\t#" in line:
line = line.partition("\t#")[0]
if gconf or lconf:
yield util.ExtendedUrl(line, gconf, lconf)
gconf = []