# 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)
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 += '<ul>'
self.state = self.stUL
self.text_html += '<li>'
- self.text_plain += '*'
+ self.text_plain += '* '
self.addtext(line[1:])
self.text_html += '</li>'
- elif line.startswith('#'):
+ elif line.startswith('# '):
self.endcur([self.stOL])
if self.state != self.stOL:
self.text_html += '<ol>'
self.state = self.stOL
self.text_html += '<li>'
- self.text_plain += '*' #TODO: lazy - put the numbers in!
+ self.text_plain += '* ' #TODO: lazy - put the numbers in!
self.addtext(line[1:])
self.text_html += '</li>'
else: