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'):