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:
parent
12fc0640df
commit
e5bc581d0d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user