always insert underline property first, for proper LaTeX handling (#4276)

This commit is contained in:
Frédéric Péters 2014-02-03 13:43:02 +01:00
parent 71f4dc9df1
commit b982d91c87
1 changed files with 1 additions and 1 deletions

View File

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