diff options
author | rsiddharth <s@ricketyspace.net> | 2017-06-04 23:18:11 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2017-06-04 23:18:11 +0000 |
commit | 45a601c1c9f922c55b36fb6541764659406cd11b (patch) | |
tree | 0de93ba425a696837b179324ec703424e4fbd5c7 /mdl_style.py | |
parent | 43534bacd401afede538247148b47e5835e7a2dd (diff) |
Fix line lengths.
* mdl_style.py: Update file.
* setup.py: Update file.
* tests/test_mdl_style.py: Upate file.
Diffstat (limited to 'mdl_style.py')
-rw-r--r-- | mdl_style.py | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/mdl_style.py b/mdl_style.py index 37b6664..c90f762 100644 --- a/mdl_style.py +++ b/mdl_style.py @@ -34,10 +34,10 @@ logger = MDLSLogger(__name__) # from mistune _inline_tags = [ - 'a', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'data', - 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', - 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'span', 'br', 'wbr', 'ins', 'del', - 'img', 'font', + 'a', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', + 'data', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', + 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'span', 'br', + 'wbr', 'ins', 'del', 'img', 'font', ] _valid_end = r'(?!:/|[^\w\s@]*@)\b' _block_tag = r'(?!(?:%s)\b)\w+%s' % ('|'.join(_inline_tags), _valid_end) @@ -191,7 +191,8 @@ class LSMarkdown(Markdown): """Link Style Markdown parser. """ - def __init__(self, renderer=None, inline=None, block=None, **kwargs): + def __init__(self, renderer=None, inline=None, block=None, + **kwargs): link_style = kwargs.get('link_style') or 'inline' if not renderer: @@ -201,7 +202,8 @@ class LSMarkdown(Markdown): if not block: block = LSBlockLexer() - super(LSMarkdown, self).__init__(renderer, inline, block, **kwargs) + super(LSMarkdown, self).__init__(renderer, inline, block, + **kwargs) def parse(self, text): # Reset footnote link variables. @@ -240,7 +242,8 @@ def _mdl_stylize(args): def _get_args(): parser = argparse.ArgumentParser() - parser.add_argument('--version', action='version', version=__version__) + parser.add_argument('--version', action='version', + version=__version__) parser.add_argument('link_style', choices=['inline', 'footnote'], help='Markdown Link style.') parser.add_argument('file', type=argparse.FileType('r'), |