From 510bcb7c85753a61fbe2dfad421e4d7f02c1acda Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 21 May 2020 07:47:13 +0530 Subject: [PATCH] Edit Book: Fix default CSS template not quoting the charset, causing check book to complain about th eCSS sheet. Fixes #1879618 [Editor generates styjesheet with fatal error](https://bugs.launchpad.net/calibre/+bug/1879618) --- src/calibre/gui2/tweak_book/templates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/templates.py b/src/calibre/gui2/tweak_book/templates.py index ea5e3ef97d..22add677b4 100644 --- a/src/calibre/gui2/tweak_book/templates.py +++ b/src/calibre/gui2/tweak_book/templates.py @@ -27,7 +27,7 @@ DEFAULT_TEMPLATES = { 'css': '''\ -@charset utf-8; +@charset "utf-8"; /* Styles for {TITLE} */ %CURSOR% ''',