odf2legi: add test for paragraphs filled with spans and styles
This commit is contained in:
parent
eaba5aa228
commit
9fe5895596
|
@ -183,6 +183,18 @@ Plop <text:a>foobar@example.net</text:a> plop
|
|||
</text:p>'''
|
||||
self.assertEqual(self.convert_to_legi(doc), '''<para>Plop plop plop plop</para>''')
|
||||
|
||||
def test_inline_many_span_and_style_and_s(self):
|
||||
odf2legi.STYLES = {'T1': {'props': ['bold']}}
|
||||
doc = '''\
|
||||
<text:p xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0">
|
||||
<text:span>Plop</text:span> <text:span text:style-name="T1">plop</text:span> \
|
||||
<text:span>plop <text:s/>plop</text:span>
|
||||
</text:p>'''
|
||||
self.assertEqual(self.convert_to_legi(doc),
|
||||
'''<para>Plop <emphasis role="bold">plop</emphasis> plop plop\n</para>''')
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Reference in New Issue