fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
660b341
)
Fix for incorrect .ttf MIME type
author
Robert Błaut
<listy@blaut.biz>
Wed, 15 Jan 2014 21:49:00 +0000
(22:49 +0100)
committer
Robert Błaut
<listy@blaut.biz>
Wed, 15 Jan 2014 21:49:00 +0000
(22:49 +0100)
librarian/epub.py
patch
|
blob
|
history
diff --git
a/librarian/epub.py
b/librarian/epub.py
index
2da6b31
..
c92de3c
100644
(file)
--- a/
librarian/epub.py
+++ b/
librarian/epub.py
@@
-549,7
+549,7
@@
def transform(wldoc, verbose=False,
subprocess.check_call(optimizer_call, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
zip.write(os.path.join(tmpdir, fname), os.path.join('OPS', fname))
manifest.append(etree.fromstring(
- '<item id="%s" href="%s" media-type="
font/ttf
" />' % (fname, fname)))
+ '<item id="%s" href="%s" media-type="
application/x-font-truetype
" />' % (fname, fname)))
rmtree(tmpdir)
if cwd is not None:
os.chdir(cwd)