aboutsummaryrefslogtreecommitdiffstats
path: root/markdown.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-11-12 23:21:25 -0500
committerWaylan Limberg <waylan@gmail.com>2008-11-13 23:27:23 -0500
commitea16c8dd8d0fc107f26f92f80d13c83e88c529e4 (patch)
treeb711d45d2b5bf68c43805cb17be5c0889cb12b1b /markdown.py
parent45f96216f7ecc24444333186dbfdfa66230ef080 (diff)
downloadmarkdown-ea16c8dd8d0fc107f26f92f80d13c83e88c529e4.tar.gz
markdown-ea16c8dd8d0fc107f26f92f80d13c83e88c529e4.tar.bz2
markdown-ea16c8dd8d0fc107f26f92f80d13c83e88c529e4.zip
Fixed a streange anomily in whitespace a start of p and li tags. Mostly odd tests corrected.
Diffstat (limited to 'markdown.py')
-rwxr-xr-xmarkdown.py4
1 files changed, 2 insertions, 2 deletions
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: