aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-13 01:17:46 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-13 23:27:44 -0500
commit2bf55d59937e91262677ef617e108d9178865454 (patch)
tree0b44d2c12fff761c7b8acdcbe5d5d373ce90844a /markdown.py
parent7198bb18b7f842502aec48245b2bc7d86a02fb3a (diff)
downloadmarkdown-2bf55d59937e91262677ef617e108d9178865454.tar.gz
markdown-2bf55d59937e91262677ef617e108d9178865454.tar.bz2
markdown-2bf55d59937e91262677ef617e108d9178865454.zip
Fixed whitespace only line clearing and updated another test to match pl and php output of lists. Only one test failing from core parser refactor now.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py
index 9c93fa4..3ae26e3 100755
--- a/markdown.py
+++ b/markdown.py
@@ -1787,7 +1787,7 @@ class Markdown:
source = source.replace(STX, "").replace(ETX, "")
source = source.replace("\r\n", "\n").replace("\r", "\n") + "\n\n"
- source = re.sub(r'\n\s\n', '\n\n', source)
+ source = re.sub(r'\n\s+\n', '\n\n', source)
source = source.expandtabs(TAB_LENGTH)
# Split into lines and run the line preprocessors.