aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorYuri Takhteyev <yuri@freewisdom.org>2007-03-25 11:46:11 +0000
committerYuri Takhteyev <yuri@freewisdom.org>2007-03-25 11:46:11 +0000
commit234f98ebe1dc3fed8631ca380d4455a77005422e (patch)
tree603166a5970f5cd6d2ae7646270a089cf9696a40 /markdown.py
parent61bfe8df9484a759b0d1113ce75df03549984064 (diff)
downloadmarkdown-234f98ebe1dc3fed8631ca380d4455a77005422e.tar.gz
markdown-234f98ebe1dc3fed8631ca380d4455a77005422e.tar.bz2
markdown-234f98ebe1dc3fed8631ca380d4455a77005422e.zip
Fixed another small bug in case of a list item starting with a
blank line (didn't work in 1.6a either)
Diffstat (limited to 'markdown.py')
-rw-r--r--markdown.py8
1 files 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'