From: Daniel Martí Date: Thu, 27 Mar 2014 16:51:34 +0000 (+0100) Subject: Only make lists if a space follows the # or * sign X-Git-Tag: 0.2~164 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=65d796c93ad19d67b7d1f4e7ee6f4b3abe76cc9a;p=fdroidserver.git 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... --- diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index ab326513..550216c5 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -173,7 +173,7 @@ def main(): # Invalid lists desc_chars = 0 for line in app['Description']: - if re.match(r'[ ]*\*[^ ]', line): + if re.match(r'[ ]*[*#][^ .]', line): warn("Invalid bulleted list: '%s'" % line) desc_chars += len(line) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 3da4b0c9..6274210c 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -311,22 +311,22 @@ class DescriptionFormatter: self.text_wiki += "%s\n" % line if not line: self.endcur() - elif line.startswith('*'): + elif line.startswith('* '): self.endcur([self.stUL]) if self.state != self.stUL: self.text_html += '