diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:26:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-01-25 15:26:12 +0000 |
| commit | 88709afd9b72bcb12b12273bf9c382031d93d622 (patch) | |
| tree | d01234601d875ae6845187019bb591e9b8b167a5 | |
| parent | b5606471d456a4d08ac18a97b58e353938ce39f9 (diff) | |
Don't style footnote reference runs by default
| -rw-r--r-- | mammoth/options.py | 1 | ||||
| -rw-r--r-- | tests/mammoth_tests.py | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/mammoth/options.py b/mammoth/options.py index a628069..79aec8c 100644 --- a/mammoth/options.py +++ b/mammoth/options.py @@ -34,6 +34,7 @@ p[style-name='heading 4'] => h4:fresh p[style-name='heading 4'] => h4:fresh p[style-name='footnote text'] => p +r[style-name='footnote reference'] => p:unordered-list(1) => ul > li:fresh p:unordered-list(2) => ul|ol > li > ul > li:fresh diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index 24b2cc9..2a005d1 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -68,8 +68,7 @@ def footnotes_are_appended_to_text(): with open(test_path("footnotes.docx"), "rb") as fileobj: result = mammoth.convert_to_html(fileobj=fileobj, generate_uniquifier=lambda: 42) - # TODO: get rid of warnings - #~ assert_equal([], result.messages) + assert_equal([], result.messages) assert_equal(expected_html, result.value) |
