diff options
| author | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-20 09:20:25 +0000 |
|---|---|---|
| committer | grubert <grubert@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2019-08-20 09:20:25 +0000 |
| commit | 98a13539066e45d1f0babcec005c965822c0df79 (patch) | |
| tree | 7aff0396a7b9e4f765373cfc1010f6ac0f9d17f5 /docutils/test | |
| parent | cb6d72b599015e1069eae216e8a516aa1484255c (diff) | |
| download | docutils-98a13539066e45d1f0babcec005c965822c0df79.tar.gz | |
Add test for footnote referenced twice
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8317 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test')
| -rw-r--r-- | docutils/test/functional/expected/odt_footnotes.odt | bin | 0 -> 8831 bytes | |||
| -rw-r--r-- | docutils/test/functional/input/odt_footnotes.txt | 9 | ||||
| -rwxr-xr-x | docutils/test/test_writers/test_odt.py | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/docutils/test/functional/expected/odt_footnotes.odt b/docutils/test/functional/expected/odt_footnotes.odt Binary files differnew file mode 100644 index 000000000..71da77a58 --- /dev/null +++ b/docutils/test/functional/expected/odt_footnotes.odt diff --git a/docutils/test/functional/input/odt_footnotes.txt b/docutils/test/functional/input/odt_footnotes.txt new file mode 100644 index 000000000..131987a17 --- /dev/null +++ b/docutils/test/functional/input/odt_footnotes.txt @@ -0,0 +1,9 @@ +========= +Footnotes +========= + +manually numbered [1]_ and referenced twice [1]_ . + +.. [1] A footnote contains body elements, consistently indented by at + least 3 spaces. + diff --git a/docutils/test/test_writers/test_odt.py b/docutils/test/test_writers/test_odt.py index a7a033792..ae05fdf09 100755 --- a/docutils/test/test_writers/test_odt.py +++ b/docutils/test/test_writers/test_odt.py @@ -205,6 +205,11 @@ class DocutilsOdtTestCase(DocutilsTestSupport.StandardTestCase): def test_odt_classifier(self): self.process_test('odt_classifier.txt', 'odt_classifier.odt') + def test_odt_footnotes(self): + self.process_test('odt_footnotes.txt', 'odt_footnotes.odt', + save_output_name='odt_footnotes.odt' + ) + # # Template for new tests. # Also add functional/input/odt_xxxx.txt and |
