From 88709afd9b72bcb12b12273bf9c382031d93d622 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 25 Jan 2015 15:26:12 +0000 Subject: Don't style footnote reference runs by default --- mammoth/options.py | 1 + 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) -- cgit v1.2.3