Skip to content

Commit 8c6e6e6

Browse files
committed
continued codecov cleanup.
1 parent 962b644 commit 8c6e6e6

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

textile/core.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
parse_attributes, pba)
2929
from textile.objects import Block, Table
3030

31-
3231
from collections import OrderedDict
3332

3433

@@ -364,7 +363,6 @@ def fTextileList(self, match):
364363
# If start is still None, set it to '', else leave the value
365364
# that we've already formatted.
366365
start = start or ''
367-
368366
# if this item tag isn't in the list, create a new list and
369367
# item, else just create the item
370368
if tl not in ls:
@@ -389,10 +387,8 @@ def fTextileList(self, match):
389387
if len(k) > 1 and v != 2:
390388
line = "{0}</{1}>".format(line, litem)
391389
del ls[k]
392-
393390
# Remember the current Textile tag
394391
pt = tl
395-
396392
# This else exists in the original php version. I'm not sure how
397393
# to come up with a case where the line would not match. I think
398394
# it may have been necessary due to the way php returns matches.
@@ -426,7 +422,7 @@ def block(self, text):
426422
text = re.split(r'(\n{2,})', text)
427423

428424
# some blocks, when processed, will ask us to output nothing, if that's
429-
# the case, we'd want to drop the whitespace which comes after it.
425+
# the case, we'd want to drop the whitespace which follows it.
430426
eat_whitespace = False
431427

432428
# check to see if previous block has already been escaped
@@ -494,7 +490,7 @@ def block(self, text):
494490
# no tag specified
495491
else:
496492
# if we're inside an extended block, add the text from the
497-
# previous line to the front
493+
# previous line to the front.
498494
if ext and out:
499495
if block.tag == 'p':
500496
line = generate_tag(block.tag, line, block.outer_atts)
@@ -557,8 +553,8 @@ def block(self, text):
557553
if block.eat:
558554
eat_whitespace = True
559555

560-
# at this point, we've gone through all the lines, and if there's still
561-
# an extension in effect, we close it here.
556+
# at this point, we've gone through all the lines. if there's still an
557+
# extension in effect, we close it here.
562558
if ext and out and not block.tag == 'p':
563559
block.content = out.pop()
564560
block.process()
@@ -588,6 +584,7 @@ def footnoteID(self, m):
588584
footref = generate_tag('sup', footref, fn_att)
589585
return '{0}{1}'.format(footref, m.group('space'))
590586

587+
591588
def glyphs(self, text):
592589
"""
593590
Because of the split command, the regular expressions are different for

0 commit comments

Comments
 (0)