From 456c61b8fa3598651cce0b04b541a2cb493f294f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 1 Aug 2014 18:28:33 +0530 Subject: [PATCH] Yet another mime type for xpgt files --- src/calibre/gui2/tweak_book/editor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tweak_book/editor/__init__.py b/src/calibre/gui2/tweak_book/editor/__init__.py index 5d2ff0853d..9fae86003c 100644 --- a/src/calibre/gui2/tweak_book/editor/__init__.py +++ b/src/calibre/gui2/tweak_book/editor/__init__.py @@ -11,7 +11,7 @@ from PyQt4.Qt import QTextCharFormat from calibre.ebooks.oeb.base import OEB_DOCS, OEB_STYLES from calibre.ebooks.oeb.polish.container import guess_type -_xml_types = {'application/oebps-page-map+xml', 'application/vnd.adobe-page-template+xml'} | { +_xml_types = {'application/oebps-page-map+xml', 'application/vnd.adobe-page-template+xml', 'application/page-template+xml'} | { guess_type('a.'+x) for x in ('ncx', 'opf', 'svg', 'xpgt', 'xml')} def syntax_from_mime(name, mime):