1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 18:50:09 +02:00

Warn about leading spaces in descriptions

This commit is contained in:
Daniel Martí 2014-05-06 15:54:34 +02:00
parent 225c644b3e
commit 65205a6ec3

View File

@ -190,6 +190,8 @@ def main():
for line in app['Description']:
if re.match(r'[ ]*[*#][^ .]', line):
warn("Invalid bulleted list: '%s'" % line)
if re.match(r'^ ', line):
warn("Unnecessary leading space: '%s'" % line)
desc_chars += len(line)
# Description size limit