always insert underline property first, for proper LaTeX handling (#4276)
This commit is contained in:
parent
71f4dc9df1
commit
b982d91c87
|
@ -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'):
|
||||
|
|
Reference in New Issue