From 8d520400c513d6a7e3672b48fcf6d219f55acec6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 28 Sep 2019 11:39:16 +0530 Subject: [PATCH] ... --- src/calibre/srv/render_book.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/srv/render_book.py b/src/calibre/srv/render_book.py index af05359d4d..c618b4bb6f 100644 --- a/src/calibre/srv/render_book.py +++ b/src/calibre/srv/render_book.py @@ -454,7 +454,9 @@ def map_epub_type(epub_type, attribs, elem): if in_attribs is None: attribs.append(['role', role]) else: - attribs[i] = ['role', role] + attribs[in_attribs] = ['role', role] + return True + return False known_tags = ('img', 'script', 'link', 'image', 'style')