summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-19 05:02:29 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-19 05:02:29 +0000
commitd8385f0e38eb4cf8d26c7e8784df8243bceceaad (patch)
tree693ed670043d531604b174f3c7ea65fb278f53a3 /md_tw.py
parent395706bc35d6ad62ae967ea04832170b79820f10 (diff)
md_tw.py: Rename TWRenderer._tw_fill.
* md_tw.py (TWRenderer)[_tw_fill]: Remove method. [tw_fill]: New method. [paragraph]: Update method.
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 21f6598..1d714c2 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -256,7 +256,7 @@ class TWRenderer(mistune.Renderer):
setattr(self.tw, opt, val)
- def _tw_fill(self, text, **kwargs):
+ def tw_fill(self, text, **kwargs):
"""Wrap text.
"""
self.tw_set(**kwargs)
@@ -279,7 +279,7 @@ class TWRenderer(mistune.Renderer):
return out
def paragraph(self, text):
- out = self._tw_fill(text)
+ out = self.tw_fill(text)
out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip())
return out