forked from LiveCarta/BookConverter
Fix annotation problem
This commit is contained in:
@@ -169,7 +169,9 @@ class HtmlEpubPreprocessor:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _tags_to_correspond_livecarta_tag(chapter_tag: BeautifulSoup,
|
def _tags_to_correspond_livecarta_tag(chapter_tag: BeautifulSoup,
|
||||||
rules: List[Dict[str, Union[List[str], str, int, Dict[str, Union[str, int]]]]]):
|
rules: List[Dict[str,
|
||||||
|
Union[List[str], str, Dict[str,
|
||||||
|
Union[str, List[Dict[str, str]]]]]]]):
|
||||||
"""
|
"""
|
||||||
Function to replace all tags to correspond LiveCarta tags
|
Function to replace all tags to correspond LiveCarta tags
|
||||||
Parameters
|
Parameters
|
||||||
@@ -259,7 +261,10 @@ class HtmlEpubPreprocessor:
|
|||||||
tag.unwrap()
|
tag.unwrap()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _insert_tags_into_correspond_tags(chapter_tag: BeautifulSoup, rules: List[Dict[str, Union[List[str], str, Dict[str, Union[str, int]]]]]):
|
def _insert_tags_into_correspond_tags(chapter_tag: BeautifulSoup,
|
||||||
|
rules: List[Dict[str,
|
||||||
|
Union[List[str], str, Dict[str,
|
||||||
|
Union[str, List[Dict[str, str]]]]]]]):
|
||||||
"""
|
"""
|
||||||
Function inserts tags into correspond tags
|
Function inserts tags into correspond tags
|
||||||
Parameters
|
Parameters
|
||||||
|
|||||||
Reference in New Issue
Block a user