diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-24 16:07:06 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-24 16:07:06 +0000 |
| commit | 45fd7a4122ab1fb2d9eb6df65f01a440ae798342 (patch) | |
| tree | d48b8db863d1ef76ef3f26ac89de1ba017956044 /docutils/test/data | |
| parent | 2a4d50108443a64dfb95c80e785afe62ea318247 (diff) | |
| download | docutils-45fd7a4122ab1fb2d9eb6df65f01a440ae798342.tar.gz | |
Test config settings with "side-effects" (overwriting other settings).
Add samples testing the handling of configuration file settings that
affect other settings:
* `input_encoding`, `output_encoding`, and `error_encoding` also set
the respective `*_encoding_error_handler` if the value has the form
`<encoding>:<handler>`.
* `stylesheet` and `stylesheet_path` are mutually exclusive
and (re)set the other setting to None.
git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8962 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/test/data')
| -rw-r--r-- | docutils/test/data/config_1.txt | 2 | ||||
| -rw-r--r-- | docutils/test/data/config_2.txt | 2 | ||||
| -rw-r--r-- | docutils/test/data/config_error_handler.txt | 1 | ||||
| -rw-r--r-- | docutils/test/data/config_error_handler_2.txt | 3 | ||||
| -rw-r--r-- | docutils/test/data/config_list_2.txt | 2 |
5 files changed, 8 insertions, 2 deletions
diff --git a/docutils/test/data/config_1.txt b/docutils/test/data/config_1.txt index ffb82a9b6..315a53176 100644 --- a/docutils/test/data/config_1.txt +++ b/docutils/test/data/config_1.txt @@ -16,7 +16,7 @@ tab-width = 8 [html4css1 writer] stylesheet-path: stylesheets/default.css - +output_encoding: ascii:xmlcharrefreplace [pep_html writer] diff --git a/docutils/test/data/config_2.txt b/docutils/test/data/config_2.txt index 35c307c6c..fb0e0b524 100644 --- a/docutils/test/data/config_2.txt +++ b/docutils/test/data/config_2.txt @@ -3,7 +3,7 @@ [general] generator: no - +output-encoding-error-handler: namereplace [html4css1 writer] diff --git a/docutils/test/data/config_error_handler.txt b/docutils/test/data/config_error_handler.txt index 82e341649..3d46ae791 100644 --- a/docutils/test/data/config_error_handler.txt +++ b/docutils/test/data/config_error_handler.txt @@ -1,2 +1,3 @@ [general] +# set `error_encoding` and `error_encoding_error_handler` error_encoding: ascii:strict diff --git a/docutils/test/data/config_error_handler_2.txt b/docutils/test/data/config_error_handler_2.txt new file mode 100644 index 000000000..2b854a722 --- /dev/null +++ b/docutils/test/data/config_error_handler_2.txt @@ -0,0 +1,3 @@ +[general] +# overwrite `error_encoding` but leave `error_encoding_error_handler` unchanged +error_encoding: latin1 diff --git a/docutils/test/data/config_list_2.txt b/docutils/test/data/config_list_2.txt index 758de4e66..30c5f9442 100644 --- a/docutils/test/data/config_list_2.txt +++ b/docutils/test/data/config_list_2.txt @@ -2,3 +2,5 @@ expose_internals: f strip-classes: ham, eggs strip-elements-with-classes: eggs,salt +# setting stylesheet resets `stylesheet_path` to None +stylesheet: style2.css |
