Skip to content
Snippets Groups Projects
Commit 283f2b2f authored by Alexis Filipozzi's avatar Alexis Filipozzi
Browse files

solve display issue for list in list

parent e9540dc3
Branches
No related tags found
No related merge requests found
......@@ -95,6 +95,9 @@ class Parser:
def parse_list_item(self, content, indent):
for c in content: # remove li tag
if hasattr(c, "name") and c.name == "ul":
last_content = self._data._body[-1]._content[-1]
if isinstance(last_content, TextContent):
last_content._new_line = True
self.parse_list(c, indent+1)
self._data._body.append(Paragraph(indent))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment