summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2015-04-03 11:16:07 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2015-04-03 11:16:07 (GMT)
commit5f51402243dc688403078a5a3441569f6c0c254f (patch)
tree89c070c2d8758b46c818850b4289ec6571e4ef7e
parente2b130e73e4b43c28e9049120f05498f50886f68 (diff)
downloadtabellioOOo-5f51402243dc688403078a5a3441569f6c0c254f.zip
tabellioOOo-5f51402243dc688403078a5a3441569f6c0c254f.tar.gz
tabellioOOo-5f51402243dc688403078a5a3441569f6c0c254f.tar.bz2
odf2legi: don't assume styles.xml will appear before others
-rw-r--r--odf2legi/odf2legi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py
index 10c9c4f..8d704f1 100644
--- a/odf2legi/odf2legi.py
+++ b/odf2legi/odf2legi.py
@@ -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)