diff options
author | Waylan Limberg <waylan@gmail.com> | 2013-02-08 06:50:25 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2013-02-08 06:50:25 -0500 |
commit | a0df080088bef0fac603b83752a36c5c403016e6 (patch) | |
tree | 04ad4b2fb13032c677e472515fad8f34dffe50e4 /markdown/blockprocessors.py | |
parent | 25e187598f06f04feeacbf967b7651e93286d3f4 (diff) | |
download | markdown-a0df080088bef0fac603b83752a36c5c403016e6.tar.gz markdown-a0df080088bef0fac603b83752a36c5c403016e6.tar.bz2 markdown-a0df080088bef0fac603b83752a36c5c403016e6.zip |
Cleaned up fixes for #183
My previous commit (d5a94c2) broke a few things badly. Unfortunately I failed
to run the complete test suite and didn't catch it. A bad regex was crashing
the test suite. Also cleaned up a few other odds and ends from previous work
on #183. Still loosing a few random empty lines in code blocks though.
I suspect this may also fix #188.
Diffstat (limited to 'markdown/blockprocessors.py')
-rw-r--r-- | markdown/blockprocessors.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 3c320f8..b41df6a 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -499,7 +499,7 @@ class EmptyBlockProcessor(BlockProcessor): # Detect a block that only contains whitespace # or only whitespace on the first line. - RE = re.compile(r'(^ *$)|(^ *\n)') + RE = re.compile(r'^ *(\n|$)') def test(self, parent, block): return bool(self.RE.match(block)) |