mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
lint: Fix unicode issues in list warnings
This commit is contained in:
parent
12fc0640df
commit
e5bc581d0d
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue