diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-18 19:05:50 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2015-02-18 19:05:50 -0500 |
commit | 77f8db7b41e7e23ea698c815958e31b5801f58bf (patch) | |
tree | 322cb55f366854f7dda58da8d4af66766e982290 /markdown/preprocessors.py | |
parent | 00d5eaae7475aec80e11710102fc76adae70cbe6 (diff) | |
download | python-markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.tar.gz |
No binary operators at begining of line.
Apparently this is a new requirement of flake8. That's the thing about using
tox. Every test run reinstalls all dependencies so an updated dependency might
instroduce new errors. I could specify a specific version, but I like staying
current.
Diffstat (limited to 'markdown/preprocessors.py')
-rw-r--r-- | markdown/preprocessors.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py index 9330a91..7fd38d3 100644 --- a/markdown/preprocessors.py +++ b/markdown/preprocessors.py @@ -216,14 +216,11 @@ class HtmlBlockPreprocessor(Preprocessor): block) # keep checking conditions below and maybe just append - if data_index < len(block) \ - and (util.isBlockLevel(left_tag) - or left_tag == '--'): + if data_index < len(block) and (util.isBlockLevel(left_tag) or left_tag == '--'): text.insert(0, block[data_index:]) block = block[:data_index] - if not (util.isBlockLevel(left_tag) - or block[1] in ["!", "?", "@", "%"]): + if not (util.isBlockLevel(left_tag) or block[1] in ["!", "?", "@", "%"]): new_blocks.append(block) continue |