appy.pod: bugfix in html2odt: in some situations, while using stylesMappings, some empty tags were present in the result, producing a superflous empty paragraph; bugfix while importing PNG files under Windows; appy.gen: began to implement a new global Appy-specific page template and styles.

This commit is contained in:
Gaetan Delannay 2011-09-02 09:59:49 +02:00
parent ddec7cd62c
commit 7514eb31a9
9 changed files with 114 additions and 21 deletions

View file

@ -145,7 +145,7 @@ pxToCm = 44.173513561
def getSize(filePath, fileType):
'''Gets the size of an image by reading first bytes.'''
x, y = (None, None)
f = file(filePath)
f = file(filePath, 'rb')
if fileType in jpgTypes:
# Dummy read to skip header ID
f.read(2)