odf2legi: don't assume styles.xml will appear before others

This commit is contained in:
Frédéric Péters 2015-04-03 13:16:07 +02:00
parent e2b130e73e
commit 5f51402243
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ def convert(input_filename, output_filename):
elif zfile == 'styles.xml':
styles = z.read(zfile)
if content and metadata:
if content and metadata and styles:
break
legi = convert_to_legi_xml(content, metadata, styles)