From 99680529d3a2c6d15f0955723a04413855f251ba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 25 Sep 2020 13:28:47 +0530 Subject: [PATCH] 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) --- src/calibre/ebooks/oeb/polish/toc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/oeb/polish/toc.py b/src/calibre/ebooks/oeb/polish/toc.py index 55a244f18f..b9f4eda899 100644 --- a/src/calibre/ebooks/oeb/polish/toc.py +++ b/src/calibre/ebooks/oeb/polish/toc.py @@ -839,7 +839,7 @@ def toc_to_html(toc, container, toc_name, title, lang=None): html = E.html( E.head( 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.h2(title),