mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-19 03:30:12 +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']:
|
for l in app['Description']:
|
||||||
if len(l) < 1:
|
if len(l) < 1:
|
||||||
continue
|
continue
|
||||||
if l[0] == lchar:
|
c = l.decode('utf-8')[0]
|
||||||
|
if c == lchar:
|
||||||
lcount += 1
|
lcount += 1
|
||||||
if lcount > 3 and lchar not in validchars:
|
if lcount > 3 and lchar not in validchars:
|
||||||
warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar)
|
warn("Description has a list (%s) but it isn't bulleted (*) nor numbered (#)" % lchar)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
lchar = l[0]
|
lchar = c
|
||||||
lcount = 1
|
lcount = 1
|
||||||
|
|
||||||
# Regex checks in all kinds of fields
|
# Regex checks in all kinds of fields
|
||||||
|
Loading…
Reference in New Issue
Block a user