From b982d91c874a41d22b7094516987088e76b5939c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 3 Feb 2014 13:43:02 +0100 Subject: [PATCH] always insert underline property first, for proper LaTeX handling (#4276) --- odf2legi/odf2legi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odf2legi/odf2legi.py b/odf2legi/odf2legi.py index e1fe5c3..28ce406 100644 --- a/odf2legi/odf2legi.py +++ b/odf2legi/odf2legi.py @@ -815,7 +815,7 @@ def parse_automatic_styles(content_tree): if prop.attrib.get('{%s}font-weight' % FO_NS) == 'bold': props.append('bold') if prop.attrib.get('{%s}text-underline-style' % STYLE_NS) == 'solid': - props.append('underline') + props.insert(0, 'underline') if prop.attrib.get('{%s}background-color' % FO_NS): if elem.attrib.get('{%s}family' % STYLE_NS) == 'paragraph': if prop.attrib.get('{%s}background-color' % FO_NS) not in (None, 'transparent', '#ffffff'):