mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Edit book: Allow editing SVG files as raw XML
This commit is contained in:
parent
26fd1f8803
commit
fc4805f699
@ -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.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'}:
|
||||
return 'xml'
|
||||
if mime.startswith('text/'):
|
||||
return 'text'
|
||||
|
Loading…
x
Reference in New Issue
Block a user