summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/md_tw.py b/md_tw.py
index 1ceb800..b61c409 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -266,7 +266,7 @@ class TWRenderer(mistune.Renderer):
def block_code(self, code, lang=None):
out = '{}'.format(code)
out = textwrap.indent(out, self.tw_get('initial_indent'),
- lambda line: True)
+ lambda line: len(line.strip()) > 0)
return out
def block_quote(self, text):