diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-18 16:47:45 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-18 16:53:57 +0000 |
commit | 88c3c986da5bd1550db9f4b5e59491068e4e1896 (patch) | |
tree | f147f140841f4aed3d6beca24082ed37561c47bb /md_tw.py | |
parent | 7f6c9ef2bb7d5899aaba83446092c38e49878c55 (diff) |
md_tw.py: Rename TWRenderer._tw_set_options method.
* md_tw.py (TWRenderer)[_tw_set_options]: Remove method.
[tw_set]: New method.
* tests/test_md_tw.py(TestTWRenderer)
[test_tw_set_options_with_valid_opts]: Remove test.
[test_tw_set_with_valid_opts]: Add test.
[test_tw_set_options_with_invalid_opts]: Remove test.
[test_tw_set_with_invalid_opts]: Add test.
Diffstat (limited to 'md_tw.py')
-rw-r--r-- | md_tw.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |