Skip to content

Commit

Permalink
Fix lint and spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Jan 24, 2025
1 parent d241477 commit 606d324
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions markdown/extensions/md_in_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,16 @@ def handle_endtag(self, tag):
while current is not None:
for child in list(current):
current.remove(child)
text = current.text if current.text is not None else ''
tail = child.tail if child.tail is not None else ''
text = current.text if current.text is not None else ''
tail = child.tail if child.tail is not None else ''
child.tail = None
state = child.attrib.get('markdown', 'off')

# If the tail is just a new line, omit it.
if tail == '\n':
tail = ''

# Process the block nested under the spac appropriately
# Process the block nested under the span appropriately
if state in ('span', 'block'):
current.text = text + '\n' + self.md.htmlStash.store(child) + '\n' + tail
last.append(child)
Expand Down Expand Up @@ -339,7 +339,7 @@ def parse_element_content(self, element: etree.Element) -> None:
if child is None:
element.text = block[start:end]
else:
child.tail = (child.tail if child.tail is not None else '')+ block[start:end]
child.tail = (child.tail if child.tail is not None else '') + block[start:end]
start = end

# Insert anything left after last element
Expand Down

0 comments on commit 606d324

Please sign in to comment.