summaryrefslogtreecommitdiff
path: root/docutils/test/data
Commit message (Collapse)AuthorAgeFilesLines
* New general setting "output".milde2023-02-073-3/+9
| | | | | | | | This setting obsoletes the positional argument <destination>. Cf. the announcement of command line pattern changes in the RELEASE-NOTES. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9328 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New functions for use as `rst2*` "console_scripts entry points".milde2023-02-062-0/+464
| | | | | | | | | | | | | | The new functions allow the installation of `rst2*` command line scripts via standard `entry points`__ instead of the current "scripts" list in ``setup.py`` after a transition period (cf. [feature-requests:#88]). + Works also for Windows. + Allows shorter command names (drop the extension), already in use in Debian and Ubuntu. __ https://packaging.python.org/en/latest/specifications/entry-points/ git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9325 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add missing test samples.milde2022-07-054-0/+5
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9101 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Documentation updatemilde2022-06-171-3/+3
| | | | | | | | | | | | Remove dead link and outdated footnote about limitations in Python2. Add link to acceptable values of encoding error handlers. Harmonise help output. Use UTF-8 in prose text, error messages, and documentation. Use 'utf-8' in code or when referring to code. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9077 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Avoid non-ASCII chars and use lowercase encoding name in help output.milde2022-06-101-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9064 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Command line "entry point" to the docutils package. Part 2/2.milde2022-05-301-0/+216
| | | | | | | | | | | | | | Support ``python -m docutils`` with new module `docutils.__main__`. Support ``docutils`` CLI command via "entry point" in setup.py. Keep tools/docutils-cli.py for backwards compatibility and manual installation. Calls `docutils.__main__.main()`. Thanks to Adam Turner for contributions and review. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9061 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix r9010.milde2022-02-251-0/+5
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9013 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test error reporting for config file syntax errors.milde2022-02-212-0/+0
| | | | | | | | Config file syntax errors should be reported with position (file and section) also for errors raised by validation with frontend.validate_*(). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9010 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes, mostly documentation. Test more "list" settings.milde2022-02-052-2/+9
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8998 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (non-Python files).milde2022-01-291-1/+0
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test config settings in "non-native" config file sections.milde2022-01-242-2/+17
| | | | | | | | | | | | | Config file sections may also contain settings from other components. They are used, if * they are defined in an active "SettingsSpec.settings_spec", * the containing section is the `confg_section` or in the `config_section_overrides` of one of the active components. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8963 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test config settings with "side-effects" (overwriting other settings).milde2022-01-245-2/+8
| | | | | | | | | | | | | | 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
* Documentation update.milde2017-04-192-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@8059 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix handling of missing stylesheets. Updated and simplied tests.milde2012-01-192-5/+0
| | | | | | | Missing stylesheets are no reason to abort conversion: Report as error and insert a comment in the output doc. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7317 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Clean up record_dependencies feature.milde2011-12-141-2/+21
| | | | | | | | | | | | Use utf8 encoding for the record file: simple, failsave and reproducible way for portable storage of non-ASCII filenames (cf. http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html). Drop latex2e exception: Record only files required to generate the LaTeX source. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7256 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix parsing of lists from config files.milde2011-11-222-0/+9
| | | | | | | | The "strip-classes" and "strip-elements-with-classes" settings expect a list but did not convert values given in a config file - making it impossible to use them in a config file. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7224 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* DependencyList uses io.FileOutputmilde2011-11-111-0/+2
| | | | | | Prevents errors recording non-ASCII filenames (fixes [ 3434355 ]). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7220 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Tests for encoding problemsmilde2011-11-081-0/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@7217 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex2e writer: Shorter preamble and less dependencies;milde2009-04-212-3/+2
| | | | | | Load packages and define macros only if required in the document. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5906 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex2e writer: Do not use "fontenc", nor the obsolete "ae" and "aeguill" ↵milde2009-02-231-2/+2
| | | | | | | | packages if font-encoding is set to the empty string (default). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5871 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Stylesheet handling for html and latex2e writer: milde2008-12-162-0/+5
| | | | | | | | | accept multiple stylesheets, do not rewrite path if stylesheet is to be embedded, load latex packages with \\usepackage; fix custom role handling in latex2e: command definition was missing in output git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5823 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Enable comma separated list of stylesheets in html4ccs1milde2008-12-062-0/+4
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5800 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* correct faulty setting definitions & add test; 0.4 backport candidategoodger2006-11-121-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4802 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Moved template functionality from the PEP/HTML writer to the HTML writer. ↵goodger2006-03-311-0/+106
| | | | | | Expanded the fragments available in the ``parts`` attribute (via publish_parts fn). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@4456 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added validator to tab_width setting, with test. Closes SF bug #1212515, ↵goodger2005-06-011-0/+1
| | | | | | report from Wu Wei. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3416 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* re-added --no-random option of PEP writer for testingwiemann2005-03-142-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3039 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* removed no_random option; SF's Python doesn't seem to be broken anymorewiemann2004-11-252-2/+0
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2868 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added test for overriding trim_footnote_reference_spacewiemann2004-10-172-0/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2710 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* added data files for dependency recorder testwiemann2004-09-306-0/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@2678 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* improved setting handlinggoodger2003-09-121-0/+2
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1682 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* new tests & support filesgoodger2003-09-015-0/+54
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@1662 929543f6-e4f2-0310-98a6-ba3bd3dd1d04