From fa47a695ea3f79da3ecf82b91f92d838211d8fcc Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Mon, 21 Jul 2014 15:53:58 -0400 Subject: [PATCH] Edit Book: Allow editing xpgt (Adobe Page Template) files as XML. Fixes #1346543 [Edit Book: Allow editing xpgt files](https://bugs.launchpad.net/calibre/+bug/1346543) --- 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 39353cfaed..f1038c15f6 100644 --- a/src/calibre/gui2/tweak_book/editor/__init__.py +++ b/src/calibre/gui2/tweak_book/editor/__init__.py @@ -16,7 +16,7 @@ def syntax_from_mime(name, mime): return 'html' if mime in OEB_STYLES: return 'css' - if mime in {guess_type('a.svg'), guess_type('a.opf'), guess_type('a.ncx'), guess_type('a.xml'), 'application/oebps-page-map+xml'}: + if mime in {guess_type('a.svg'), guess_type('a.opf'), guess_type('a.ncx'), guess_type('a.xml'), 'application/oebps-page-map+xml', 'application/vnd.adobe-page-template+xml'}: return 'xml' if mime.startswith('text/'): return 'text'