mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -16,7 +16,7 @@ def syntax_from_mime(name, mime):
|
|||||||
return 'html'
|
return 'html'
|
||||||
if mime in OEB_STYLES:
|
if mime in OEB_STYLES:
|
||||||
return 'css'
|
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'
|
return 'xml'
|
||||||
if mime.startswith('text/'):
|
if mime.startswith('text/'):
|
||||||
return 'text'
|
return 'text'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user