Open GoogleCodeExporter opened 8 years ago
Here's some code to prevent unordered and ordered lists from being treated as
figures. This resolves this issue (at least in the case of RFC 4462). I
replaced isFigureLine's declaration as a lambda expression in html.py with the
following code:
def isFigureLine(line):
# If line is an ordered/unordered list, then no
if re.match(r'^\s*\d\.\s+',line) or re.match(r'^\s*o\s+',line):
return False
if string.count(line, '---') > 0:
return True
if string.count(line, '|') > 1:
return True
if string.count(line, '+') > 1:
return True
if string.count(line, '>') > 3:
return True
if string.count(line, '<') > 3:
return True
return False
Original comment by proverbs...@gmail.com
on 14 Feb 2012 at 6:22
Original issue reported on code.google.com by
proverbs...@gmail.com
on 13 Feb 2012 at 6:09