From 5f51402243dc688403078a5a3441569f6c0c254f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 3 Apr 2015 13:16:07 +0200 Subject: [PATCH] odf2legi: don't assume styles.xml will appear before others --- odf2legi/odf2legi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)