From 6ffa6934ed79999ab34ba223fa5f0c9ec8ddc7f7 Mon Sep 17 00:00:00 2001 From: BasioMeusPuga Date: Fri, 23 Mar 2018 17:48:58 +0530 Subject: [PATCH] Fix splitting for a repeated anchor --- lector/ePub/read_epub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lector/ePub/read_epub.py b/lector/ePub/read_epub.py index 7b7399e..a88dd96 100644 --- a/lector/ePub/read_epub.py +++ b/lector/ePub/read_epub.py @@ -314,7 +314,8 @@ def get_split_content(chapter_data, split_by): return_list.append( (chapter_titles[count - 1], bs_obj_string)) - xml_string = this_split[1] + + xml_string = ''.join(this_split[1:]) bs_obj = BeautifulSoup(xml_string, 'lxml') bs_obj_string = str(bs_obj).replace('">', '', 1) + ('
' * 8)