summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorId3aFly <Id3aFly@users.noreply.github.com>2022-06-13 14:50:12 +0000
committerGitHub <noreply@github.com>2022-06-13 10:50:12 -0400
commit97359a4a93c0158e39f80ba82e8c99db1ffea4d9 (patch)
treee8987ef9de81101169c29268b07076bd61609e75
parenta767b2daaad78ba32d45a4f1dabb7c5e218f030a (diff)
downloadpython-markdown-97359a4a93c0158e39f80ba82e8c99db1ffea4d9.tar.gz
Remove redundant lines from PrettifyTreeprocessor
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 #1267.
-rw-r--r--markdown/treeprocessors.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py
index 7767347..e02a505 100644
--- a/markdown/treeprocessors.py
+++ b/markdown/treeprocessors.py
@@ -406,8 +406,6 @@ class PrettifyTreeprocessor(Treeprocessor):
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