From ea16c8dd8d0fc107f26f92f80d13c83e88c529e4 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 12 Nov 2008 23:21:25 -0500 Subject: Fixed a streange anomily in whitespace a start of p and li tags. Mostly odd tests corrected. --- markdown.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'markdown.py') diff --git a/markdown.py b/markdown.py index 6b43c66..fc93238 100755 --- a/markdown.py +++ b/markdown.py @@ -481,10 +481,10 @@ class PBlockProcessor(BlockProcessor): if parent.text: parent.text = '%s\n%s' % (parent.text, block) else: - parent.text = block + parent.text = block.lstrip() else: p = etree.SubElement(parent, 'p') - p.text = block + p.text = block.lstrip() class BlockParser: -- cgit v1.2.3