Only make lists if a space follows the # or * sign

This prevents making a list item out of lines such as:

*.rom images and allows using...
This commit is contained in:
Daniel Martí 2014-03-27 17:51:34 +01:00
parent 6c6a9c4bb2
commit 65d796c93a
2 changed files with 5 additions and 5 deletions

View file

@ -173,7 +173,7 @@ def main():
# Invalid lists # Invalid lists
desc_chars = 0 desc_chars = 0
for line in app['Description']: for line in app['Description']:
if re.match(r'[ ]*\*[^ ]', line): if re.match(r'[ ]*[*#][^ .]', line):
warn("Invalid bulleted list: '%s'" % line) warn("Invalid bulleted list: '%s'" % line)
desc_chars += len(line) desc_chars += len(line)