Skip to content

Commit 606d324

Browse files
committed
Fix lint and spelling errors
1 parent d241477 commit 606d324

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

markdown/extensions/md_in_html.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,16 @@ def handle_endtag(self, tag):
174174
while current is not None:
175175
for child in list(current):
176176
current.remove(child)
177-
text = current.text if current.text is not None else ''
178-
tail = child.tail if child.tail is not None else ''
177+
text = current.text if current.text is not None else ''
178+
tail = child.tail if child.tail is not None else ''
179179
child.tail = None
180180
state = child.attrib.get('markdown', 'off')
181181

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

186-
# Process the block nested under the spac appropriately
186+
# Process the block nested under the span appropriately
187187
if state in ('span', 'block'):
188188
current.text = text + '\n' + self.md.htmlStash.store(child) + '\n' + tail
189189
last.append(child)
@@ -339,7 +339,7 @@ def parse_element_content(self, element: etree.Element) -> None:
339339
if child is None:
340340
element.text = block[start:end]
341341
else:
342-
child.tail = (child.tail if child.tail is not None else '')+ block[start:end]
342+
child.tail = (child.tail if child.tail is not None else '') + block[start:end]
343343
start = end
344344

345345
# Insert anything left after last element

0 commit comments

Comments
 (0)