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 acde6a5..4b833ba 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -225,7 +225,7 @@ class TWRenderer(mistune.Renderer):
)
- def _tw_set_options(self, **kwargs):
+ def tw_set(self, **kwargs):
"""
Set options for the local textwrap.TextWrapper instance.
"""
@@ -248,7 +248,7 @@ class TWRenderer(mistune.Renderer):
def _tw_fill(self, text, **kwargs):
"""Wrap text.
"""
- self._tw_set_options(**kwargs)
+ self.tw_set(**kwargs)
return self.tw.fill(text)