From 97359a4a93c0158e39f80ba82e8c99db1ffea4d9 Mon Sep 17 00:00:00 2001 From: Id3aFly Date: Mon, 13 Jun 2022 14:50:12 +0000 Subject: [PATCH] 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. --- markdown/treeprocessors.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py index 7767347c0..e02a505b7 100644 --- a/markdown/treeprocessors.py +++ b/markdown/treeprocessors.py @@ -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