mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-19 22:25:16 +01:00
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)
This commit is contained in:
parent
e6964c4eee
commit
fa47a695ea
1 changed files with 1 additions and 1 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue