mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Fix a regression in the previous release that broke the Insert Inline Table of Contents tool. Fixes #1897229 [bug with insert inline toc](https://bugs.launchpad.net/calibre/+bug/1897229)
This commit is contained in:
parent
011bba1a58
commit
99680529d3
@ -839,7 +839,7 @@ def toc_to_html(toc, container, toc_name, title, lang=None):
|
|||||||
html = E.html(
|
html = E.html(
|
||||||
E.head(
|
E.head(
|
||||||
E.title(title),
|
E.title(title),
|
||||||
E.style(P('templates/inline_toc_styles.css', data=True), type='text/css'),
|
E.style(P('templates/inline_toc_styles.css', data=True).decode('utf-8'), type='text/css'),
|
||||||
),
|
),
|
||||||
E.body(
|
E.body(
|
||||||
E.h2(title),
|
E.h2(title),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user