diff options
Diffstat (limited to 'markdown.py')
-rwxr-xr-x | markdown.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown.py b/markdown.py index 09cfdea..5d7dc32 100755 --- a/markdown.py +++ b/markdown.py @@ -106,7 +106,7 @@ def indentETree(elem, level=0): else: i = "\n" - if len(elem): + if len(elem) and elem.tag not in ['code', 'pre']: if not elem.text or not elem.text.strip(): elem.text = i + " " for e in elem: |