From eea4bc937aa091d132ee0e927d6600292fbffc2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 16 Dec 2013 09:47:25 +0100 Subject: [PATCH] add a test for blank paragraphs --- odf2legi/tests.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) 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 = '''\