I tried to create a Table of contents and I get that error message :
calibre, version 5.0.0
ERREUR : Exception non gérée: <b>TypeError</b>:bad argument type: bytes(b'li { list-style-type: none; padding-left: 2em; margin-left: 0}\n\na { text-decoration: none }\n\na:hover { color: red }\n')
calibre 5.0 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: fr
Successfully initialized third party plugins: EpubMerge (2, 11, 0) && EpubSplit (2, 9, 0) && KePub Input (3, 2, 10) && KePub Metadata Reader (3, 2, 9) && KePub Metadata Writer (3, 2, 12) && KePub Output (3, 2, 15) && Kobo Utilities (2, 11, 5) && KoboTouchExtended (3, 2, 15)
Traceback (most recent call last):
File "site-packages\calibre\gui2\tweak_book\boss.py", line 584, in insert_inline_toc
File "site-packages\calibre\ebooks\oeb\polish\toc.py", line 879, in create_inline_toc
File "site-packages\calibre\ebooks\oeb\polish\toc.py", line 842, in toc_to_html
File "src/lxml/builder.py", line 226, in lxml.builder.ElementMaker.__call__
TypeError: bad argument type: bytes(b'li { list-style-type: none; padding-left: 2em; margin-left: 0}\n\na { text-decoration: none }\n\na:hover { color: red }\n')
|