From 95ceb1e0897763662162863bed60a3c8c99b7dde Mon Sep 17 00:00:00 2001 From: shirshasa Date: Mon, 28 Sep 2020 12:53:24 +0300 Subject: [PATCH] fix heading in json --- src/json_converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/json_converter.py b/src/json_converter.py index ddf479a..51d505a 100644 --- a/src/json_converter.py +++ b/src/json_converter.py @@ -37,10 +37,10 @@ class JSONConverter: :param ind: Index of header in content list. """ if self.content[ind].name in LawCartaConfig.SUPPORTED_HEADERS: - title = self.content[ind].text + title = self.content[ind] curr_outline = int(re.sub(r"^h", "", self.content[ind].name)) # extract outline from tag result = { - 'title': title, + 'title': f'{title}', 'contents': [], 'sub_items': [] }