Skip to content

Commit ce60154

Browse files
committed
remove extraneous branch.
utils.generate_tag handles empty tag anyway.
1 parent c1ccb2e commit ce60154

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

textile/core.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,8 @@ def block(self, text):
437437
last_item_is_a_shelf = out[-1] in self.shelf
438438
if ext and match.group('tag') and last_item_is_a_shelf:
439439
content = out.pop()
440-
if block.inner_tag:
441-
content = generate_tag(block.inner_tag, content,
442-
block.inner_atts)
440+
content = generate_tag(block.inner_tag, content,
441+
block.inner_atts)
443442
out.append(generate_tag(block.outer_tag, content,
444443
block.outer_atts))
445444
tag, atts, ext, cite, content = match.groups()

0 commit comments

Comments
 (0)