diff options
author | Kar Epker <karepker+services@gmail.com> | 2015-06-01 13:19:46 -0400 |
---|---|---|
committer | Kar Epker <karepker+services@gmail.com> | 2015-06-01 13:19:46 -0400 |
commit | cced40a37862de25c74f805dcb23fe3dd84766d5 (patch) | |
tree | 62480212f56f0cf3f46337f9c554db8516fc16f7 | |
parent | 6cbc66b4e63de0ddba7413b653591274fc6587cf (diff) | |
download | markdown-cced40a37862de25c74f805dcb23fe3dd84766d5.tar.gz markdown-cced40a37862de25c74f805dcb23fe3dd84766d5.tar.bz2 markdown-cced40a37862de25c74f805dcb23fe3dd84766d5.zip |
Changed line continuations to satisfy pylint.
-rw-r--r-- | markdown/blockprocessors.py | 23 | ||||
-rw-r--r-- | markdown/extensions/sane_lists.py | 10 |
2 files changed, 19 insertions, 14 deletions
diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 4b296d5..43a384d 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -311,16 +311,18 @@ class OListProcessor(BlockProcessor): def __init__(self, parser): BlockProcessor.__init__(self, parser) # Detect an item (``1. item``). ``group(1)`` contains contents of item. - self.RE = re.compile(''.join([ - r'^[ ]{0,', str(self.tab_length - 1), r'}\d+\.[ ]+(.*)'])) + self.RE = re.compile( + ''.join([r'^[ ]{0,', str(self.tab_length - 1), + r'}\d+\.[ ]+(.*)'])) # Detect items on secondary lines. they can be of either list type. - self.CHILD_RE = re.compile(''.join([ - r'^[ ]{0,', str(self.tab_length - 1), '}((\d+\.)|[*+-])[ ]+(.*)'])) + self.CHILD_RE = re.compile( + ''.join([r'^[ ]{0,', str(self.tab_length - 1), + r'}((\d+\.)|[*+-])[ ]+(.*)'])) # Detect indented (nested) items of either type - self.INDENT_RE = re.compile(''.join([ - r'^[ ]{', str(self.tab_length), ',', str(self.tab_length * 2 - 1), - r'}((\d+\.)|[*+-])[ ]+.*'])) - + self.INDENT_RE = re.compile( + ''.join([r'^[ ]{', str(self.tab_length), ',', + str(self.tab_length * 2 - 1), + r'}((\d+\.)|[*+-])[ ]+.*'])) def test(self, parent, block): return bool(self.RE.match(block)) @@ -419,8 +421,9 @@ class UListProcessor(OListProcessor): def __init__(self, parser): OListProcessor.__init__(self, parser) # Detect an item (``1. item``). ``group(1)`` contains contents of item. - self.RE = re.compile(''.join([ - r'^[ ]{0,', str(self.tab_length - 1), r'}[*+-][ ]+(.*)'])) + self.RE = re.compile( + ''.join([r'^[ ]{0,', str(self.tab_length - 1), + r'}[*+-][ ]+(.*)'])) class HashHeaderProcessor(BlockProcessor): diff --git a/markdown/extensions/sane_lists.py b/markdown/extensions/sane_lists.py index e1f2fc3..f464ac0 100644 --- a/markdown/extensions/sane_lists.py +++ b/markdown/extensions/sane_lists.py @@ -28,8 +28,9 @@ class SaneOListProcessor(OListProcessor): def __init__(self, parser): OListProcessor.__init__(self, parser) - self.CHILD_RE = re.compile(''.join([ - r'^[ ]{0,', str(self.tab_length - 1), r'}((\d+\.))[ ]+(.*)'])) + self.CHILD_RE = re.compile( + ''.join([r'^[ ]{0,', str(self.tab_length - 1), + r'}((\d+\.))[ ]+(.*)'])) class SaneUListProcessor(UListProcessor): @@ -38,8 +39,9 @@ class SaneUListProcessor(UListProcessor): def __init__(self, parser): UListProcessor.__init__(self, parser) - self.CHILD_RE = re.compile(''.join([ - r'^[ ]{0,', str(self.tab_length - 1), r'}(([*+-]))[ ]+(.*)'])) + self.CHILD_RE = re.compile( + ''.join([r'^[ ]{0,', str(self.tab_length - 1), + r'}(([*+-]))[ ]+(.*)'])) class SaneListExtension(Extension): |