appy.pod: bugfix while importing SVG images.

This commit is contained in:
Gaetan Delannay 2012-01-26 13:40:11 +01:00
parent 298ed34b5b
commit 95a899f3de

View file

@ -353,6 +353,8 @@ class Renderer:
j = os.path.join
toInsert = ''
for fileName in self.fileNames.iterkeys():
if fileName.endswith('.svg'):
fileName = os.path.splitext(fileName)[0] + '.png'
mimeType = mimetypes.guess_type(fileName)[0]
toInsert += ' <manifest:file-entry manifest:media-type="%s" ' \
'manifest:full-path="%s"/>\n' % (mimeType, fileName)