diff --git a/odf2legi/tests.py b/odf2legi/tests.py index eec2347..86cc397 100644 --- a/odf2legi/tests.py +++ b/odf2legi/tests.py @@ -631,6 +631,28 @@ class MiscTestCase(unittest.TestCase): odf2legi.convert_to_legi_xml(doc), '''ChapterPlop plop plopPlop plop plop''') + def test_blank_paragraphs(self): + doc = '''\ + + + +Chapter +Plop plop plop + + +Plop plop plop + + + +''' + self.assertEqual( + odf2legi.convert_to_legi_xml(doc), + '''ChapterPlop plop plopPlop plop plop''') + + def test_paragraph_with_annotation(self): doc = '''\