1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

lint: Fix unicode issues in list warnings

This commit is contained in:
Daniel Martí 2015-08-13 22:37:42 -07:00
parent 12fc0640df
commit e5bc581d0d

View File

@ -218,13 +218,14 @@ def main():
for l in app['Description']:
if len(l) < 1:
continue
if l[0] == lchar:
c = l.decode('utf-8')[0]
if c == lchar:
lcount += 1
if lcount > 3 and lchar not in validchars:
warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar)
break
else:
lchar = l[0]
lchar = c
lcount = 1
# Regex checks in all kinds of fields