From 283f2b2f13764394701995defd673656a12ddc56 Mon Sep 17 00:00:00 2001
From: Alexis Filipozzi <alexis.filipozzi@gmail.com>
Date: Wed, 13 Jul 2016 13:38:22 +0200
Subject: [PATCH] solve display issue for list in list

---
 html_parser.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/html_parser.py b/html_parser.py
index 6bc0347..e3df8c3 100644
--- a/html_parser.py
+++ b/html_parser.py
@@ -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:
-- 
GitLab