File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments