aboutsummaryrefslogtreecommitdiffstats
path: root/markdown/blockprocessors.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-02-18 19:05:50 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-02-18 19:05:50 -0500
commit77f8db7b41e7e23ea698c815958e31b5801f58bf (patch)
tree322cb55f366854f7dda58da8d4af66766e982290 /markdown/blockprocessors.py
parent00d5eaae7475aec80e11710102fc76adae70cbe6 (diff)
downloadmarkdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.tar.gz
markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.tar.bz2
markdown-77f8db7b41e7e23ea698c815958e31b5801f58bf.zip
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/blockprocessors.py')
-rw-r--r--markdown/blockprocessors.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py
index a516fb4..29db022 100644
--- a/markdown/blockprocessors.py
+++ b/markdown/blockprocessors.py
@@ -231,8 +231,8 @@ class CodeBlockProcessor(BlockProcessor):
sibling = self.lastChild(parent)
block = blocks.pop(0)
theRest = ''
- if (sibling is not None and sibling.tag == "pre"
- and len(sibling) and sibling[0].tag == "code"):
+ if (sibling is not None and sibling.tag == "pre" and
+ len(sibling) and sibling[0].tag == "code"):
# The previous block was a code block. As blank lines do not start
# new code blocks, append this block to the previous, adding back
# linebreaks removed from the split into a list.
@@ -517,8 +517,8 @@ class EmptyBlockProcessor(BlockProcessor):
# Add remaining lines to master blocks for later.
blocks.insert(0, theRest)
sibling = self.lastChild(parent)
- if (sibling is not None and sibling.tag == 'pre'
- and len(sibling) and sibling[0].tag == 'code'):
+ if (sibling is not None and sibling.tag == 'pre' and
+ len(sibling) and sibling[0].tag == 'code'):
# Last block is a codeblock. Append to preserve whitespace.
sibling[0].text = util.AtomicString(
'%s%s' % (sibling[0].text, filler)