forked from LiveCarta/BookConverter
Merge branch 'develop' into refactoring
This commit is contained in:
@@ -551,7 +551,6 @@ class HTMLPreprocessor:
|
|||||||
self._dfs(tag, is_first_span=True)
|
self._dfs(tag, is_first_span=True)
|
||||||
|
|
||||||
span_with_style_font = tag.find_all("span", {'style': re.compile(r'^font.+')})
|
span_with_style_font = tag.find_all("span", {'style': re.compile(r'^font.+')})
|
||||||
|
|
||||||
if span_with_style_font:
|
if span_with_style_font:
|
||||||
for span in span_with_style_font:
|
for span in span_with_style_font:
|
||||||
span.unwrap()
|
span.unwrap()
|
||||||
|
|||||||
@@ -4,7 +4,9 @@ import codecs
|
|||||||
import json
|
import json
|
||||||
|
|
||||||
from copy import copy
|
from copy import copy
|
||||||
from src.config import LawCartaConfig
|
|
||||||
|
from config import LawCartaConfig
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class JSONConverter:
|
class JSONConverter:
|
||||||
|
|||||||
Reference in New Issue
Block a user