forked from LiveCarta/BookConverter
refactor with PEP8
This commit is contained in:
@@ -497,7 +497,7 @@ class EpubConverter:
|
||||
id wraps chapter"s content + subchapters" content
|
||||
id points to the start of title of a chapter
|
||||
|
||||
In all cases we know where chapter starts. Therefore, chapter is all tags between chapter"s id
|
||||
In all cases we know where chapter starts. Therefore, chapter is all tags between chapter's id
|
||||
and id of the next chapter/subchapter
|
||||
Parameters
|
||||
----------
|
||||
@@ -539,6 +539,7 @@ class EpubConverter:
|
||||
|
||||
lvl: int
|
||||
level of chapter
|
||||
|
||||
Returns
|
||||
-------
|
||||
ChapterItem
|
||||
@@ -597,7 +598,7 @@ class EpubConverter:
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
epub_file_path = "../../epub/9781614382264.epub"
|
||||
epub_file_path = "../../epub/9781641050234.epub"
|
||||
logger_object = BookLogger(
|
||||
name="epub", book_id=epub_file_path.split("/")[-1])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user