summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/md_tw.py b/md_tw.py
index 52e1e98..8d92e89 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -272,8 +272,8 @@ class TWMarkdown(mistune.Markdown):
def parse(self, text):
out = super(TWMarkdown, self).parse(text)
- # Strip newline at the beginning.
- return out.lstrip('\n')
+ # Add newline at the end.
+ return '{}\n'.format(out.strip('\n'))
def main():