From 9fe5895596d49519aa6b6100e3933a36c3109fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 21 Nov 2014 08:47:04 +0100 Subject: [PATCH] odf2legi: add test for paragraphs filled with spans and styles --- odf2legi/tests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/odf2legi/tests.py b/odf2legi/tests.py index 6c4124b..87c8159 100644 --- a/odf2legi/tests.py +++ b/odf2legi/tests.py @@ -183,6 +183,18 @@ Plop foobar@example.net plop ''' self.assertEqual(self.convert_to_legi(doc), '''Plop plop plop plop''') + def test_inline_many_span_and_style_and_s(self): + odf2legi.STYLES = {'T1': {'props': ['bold']}} + doc = '''\ + +Plop plop \ +plop plop +''' + self.assertEqual(self.convert_to_legi(doc), + '''Plop plop plop plop\n''') +