diff --git a/src/html_preprocessor.py b/src/html_preprocessor.py index eb85028..61e1bbd 100644 --- a/src/html_preprocessor.py +++ b/src/html_preprocessor.py @@ -551,7 +551,6 @@ class HTMLPreprocessor: self._dfs(tag, is_first_span=True) span_with_style_font = tag.find_all("span", {'style': re.compile(r'^font.+')}) - if span_with_style_font: for span in span_with_style_font: span.unwrap() diff --git a/src/json_converter.py b/src/json_converter.py index 64f7d2d..ddf479a 100644 --- a/src/json_converter.py +++ b/src/json_converter.py @@ -4,7 +4,9 @@ import codecs import json from copy import copy -from src.config import LawCartaConfig + +from config import LawCartaConfig + class JSONConverter: