From 2bf55d59937e91262677ef617e108d9178865454 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 13 Nov 2008 01:17:46 -0500 Subject: 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. --- markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'markdown.py') 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. -- cgit v1.2.3