-
Notifications
You must be signed in to change notification settings - Fork 896
Closed
Description
I just saw following code in https://github.com/Python-Markdown/markdown/blob/master/markdown/treeprocessors.py#L398-L412
if self.md.is_block_level(elem.tag) and elem.tag not in ['code', 'pre']:
...
if not elem.tail or not elem.tail.strip():
elem.tail = i
if not elem.tail or not elem.tail.strip():
elem.tail = i
In my opinion the two lines in https://github.com/Python-Markdown/markdown/blob/master/markdown/treeprocessors.py#L409-L410
if not elem.tail or not elem.tail.strip():
elem.tail = i
are superfluous as they are called regardless identically in https://github.com/Python-Markdown/markdown/blob/master/markdown/treeprocessors.py#L411-L412. Also with the variable i is not changed.
Solution would be to remove the two lines https://github.com/Python-Markdown/markdown/blob/master/markdown/treeprocessors.py#L409-L410
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels