diff options
| author | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-10-17 23:19:34 +0000 |
|---|---|---|
| committer | wiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2004-10-17 23:19:34 +0000 |
| commit | e3da065a9968dce36859622ac231211682a3036f (patch) | |
| tree | e55494507094901f8f9388f4058589e408f82786 /docutils | |
| parent | 5d8620f249b497d5abacc4bf437046301fa0d70c (diff) | |
| download | docutils-e3da065a9968dce36859622ac231211682a3036f.tar.gz | |
added test for overriding trim_footnote_reference_space
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2710 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
| -rw-r--r-- | docutils/test/data/config_1.txt | 5 | ||||
| -rw-r--r-- | docutils/test/data/config_2.txt | 1 | ||||
| -rwxr-xr-x | docutils/test/test_settings.py | 15 |
3 files changed, 15 insertions, 6 deletions
diff --git a/docutils/test/data/config_1.txt b/docutils/test/data/config_1.txt index 9524dfb8c..f94074a8a 100644 --- a/docutils/test/data/config_1.txt +++ b/docutils/test/data/config_1.txt @@ -7,6 +7,11 @@ datestamp: %Y-%m-%d %H:%M UTC generator: true +[restructuredtext parser] + +trim-footnote-reference-space: 1 + + [html4css1 writer] stylesheet-path: stylesheets/default.css diff --git a/docutils/test/data/config_2.txt b/docutils/test/data/config_2.txt index 6f1d17008..35c307c6c 100644 --- a/docutils/test/data/config_2.txt +++ b/docutils/test/data/config_2.txt @@ -7,4 +7,5 @@ generator: no [html4css1 writer] +footnote-references: superscript stylesheet-path: test.css diff --git a/docutils/test/test_settings.py b/docutils/test/test_settings.py index b90f00f46..2a17c6eef 100755 --- a/docutils/test/test_settings.py +++ b/docutils/test/test_settings.py @@ -18,8 +18,8 @@ import warnings import unittest from types import StringType from docutils import frontend, utils -from docutils.writers import html4css1 -from docutils.writers import pep_html +from docutils.writers import html4css1, pep_html +from docutils.parsers import rst warnings.filterwarnings(action='ignore', @@ -57,11 +57,14 @@ class ConfigFileTests(unittest.TestCase): 'source_link': 1, 'stylesheet': None, 'stylesheet_path': fixpath('data/stylesheets/pep.css'), - 'template': fixpath('data/pep-html-template')}, - 'two': {'generator': 0, + 'template': fixpath('data/pep-html-template'), + 'trim_footnote_reference_space': 1}, + 'two': {'footnote_references': 'superscript', + 'generator': 0, 'record_dependencies': utils.DependencyList(), 'stylesheet': None, - 'stylesheet_path': fixpath('data/test.css')}, + 'stylesheet_path': fixpath('data/test.css'), + 'trim_footnote_reference_space': None}, 'list': {'expose_internals': ['a', 'b', 'c', 'd', 'e']}, 'list2': {'expose_internals': ['a', 'b', 'c', 'd', 'e', 'f']}, 'error': {'error_encoding': 'ascii', @@ -73,7 +76,7 @@ class ConfigFileTests(unittest.TestCase): def setUp(self): self.option_parser = frontend.OptionParser( - components=(pep_html.Writer,), read_config_files=None) + components=(pep_html.Writer, rst.Parser), read_config_files=None) def files_settings(self, *names): settings = frontend.Values() |
