From 234f98ebe1dc3fed8631ca380d4455a77005422e Mon Sep 17 00:00:00 2001 From: Yuri Takhteyev Date: Sun, 25 Mar 2007 11:46:11 +0000 Subject: Fixed another small bug in case of a list item starting with a blank line (didn't work in 1.6a either) --- markdown.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/markdown.py b/markdown.py index 37b9b13..4201891 100644 --- a/markdown.py +++ b/markdown.py @@ -1379,9 +1379,11 @@ class Markdown: m = RE.regExp[expr].match(line) if m : if expr in ['ul', 'ol'] : # We are looking at a new item - if m.group(1) : - items.append([m.group(1)]) - item += 1 + #if m.group(1) : + # Removed the check to allow for a blank line + # at the beginning of the list item + items.append([m.group(1)]) + item += 1 elif expr == 'tabbed' : # This line needs to be detabbed items[item].append(m.group(4)) #after the 'tab' -- cgit v1.2.3