odf2legi: don't assume styles.xml will appear before others
This commit is contained in:
parent
e2b130e73e
commit
5f51402243
|
@ -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)
|
||||
|
|
Reference in New Issue