diff --git a/src/calibre/gui2/tweak_book/editor/__init__.py b/src/calibre/gui2/tweak_book/editor/__init__.py index ffc54590ca..478215e9eb 100644 --- a/src/calibre/gui2/tweak_book/editor/__init__.py +++ b/src/calibre/gui2/tweak_book/editor/__init__.py @@ -24,7 +24,7 @@ def syntax_from_mime(name, mime): if mime.startswith('text/'): return 'text' if mime.startswith('image/') and mime.partition('/')[-1].lower() in { - 'jpeg', 'jpg', 'gif', 'png'}: + 'jpeg', 'jpg', 'gif', 'png', 'webp'}: return 'raster_image' if mime.endswith('+xml'): return 'xml'