Skip to content

Commit

Permalink
Remove redundant lines from PrettifyTreeprocessor
Browse files Browse the repository at this point in the history
Lines in 409 and 410 are part of an if-condition-block. However, they are called identically L411 and L412 outside of the if-block anyways. Fixes Python-Markdown#1267.
  • Loading branch information
Id3aFly authored Jun 13, 2022
1 parent a767b2d commit 97359a4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions markdown/treeprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,6 @@ def _prettifyETree(self, elem):
for e in elem:
if self.md.is_block_level(e.tag):
self._prettifyETree(e)
if not elem.tail or not elem.tail.strip():
elem.tail = i
if not elem.tail or not elem.tail.strip():
elem.tail = i

Expand Down

0 comments on commit 97359a4

Please sign in to comment.