summaryrefslogtreecommitdiff
path: root/docutils/test/functional
Commit message (Collapse)AuthorAgeFilesLines
* Version 0.20.2b.devgrubert2023-05-1718-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9390 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Release 0.20.1grubert2023-05-1618-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9388 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.20.1b.devgrubert2023-05-0918-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9376 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release 0.20grubert2023-05-0918-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9374 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.20rc1 grubert2023-05-0418-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9372 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: Use dpub-ARIA role "doc-footnote" for footnotesmilde2022-12-013-35/+35
| | | | | | | | (instead of ARIA role "note"). No change with "html4css1". git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9292 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Raise version to 0.20b.dev.milde2022-12-0118-18/+18
| | | | | | There are not only bugfix changes since 0.19, so a new "minor" release is required. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9291 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Wrap definition lists with "details" class argument in a <div>milde2022-11-282-0/+6
| | | | | | | | with the "id" and "class" values of the list node. Enables setting an "anchor" or a "class" value for "detail disclosure elments". git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9282 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop default settings from individual functional test files.milde2022-11-1633-883/+277
| | | | | | | | | Define common defaults for all functional tests in `test_functional.py`. Only specify settings that differ from the default/fallback value in the individual test files. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9249 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Refactor HTMLTranslator initialization and parts setup.milde2022-11-1317-21/+21
| | | | | | | | | | | | | | | | | Use utils.xml_declaration(). Don't write charset (encoding) declaration if the intended output encoding is not known. Copy "meta" part content into "head" in `depart_document()` (i.e. after collecting all items). Obsoletes auxiliary method `add_meta()`. Remove it. Changes to the HTML output (no space character before closing tag of XML declaration, order of metadata elements) don't affect the HTML semantics, styling, and rendering. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9240 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Simplify/fix LaTeX character encoding handling.milde2022-11-0612-12/+0
| | | | | | | | | | | Do not call "inputenc" if the "output-encoding" setting is 'utf-8'. (UTF-8 is the default encoding for LaTeX2e since 2018.) Do not call "inputenc" if the "output-encoding" setting is 'unicode': Docutils returns a `str` instance and does not know which encoding will be used when the output is written to a file or passed to LaTeX. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9219 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove ``_test_more`` supportaa-turner2022-10-272-53/+17
| | | | | | | This was only used in one test and complicated the functional testing logic. Testing extra items should be done in independent tests. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9182 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Inline ``_default`` in functional testsaa-turner2022-10-2734-10/+462
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9180 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Inline ``_standalone_rst_defaults`` in functional testsaa-turner2022-10-2711-36/+70
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9179 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.19.1b.devgrubert2022-07-0518-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9105 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release 0.19grubert2022-07-0518-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9103 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.19b2.devgrubert2022-06-2118-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9086 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release 0.19b1grubert2022-06-2118-18/+18
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9085 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add wrapper around groups of footnotes to facilitate styling as a list.milde2022-06-193-0/+16
| | | | | | | | Adapt style sheets and tests. Cf. bug #450. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9081 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add encoding arguments when opening files.milde2022-06-1510-10/+20
| | | | | | | | | | | | | Specify intended incoding, when possible. Avoids `EncodingWarning` in PEP 597 and nasty surprises if the default encoding is not what the user expects. Keep encoding unspecified where this may be an API change. Based on patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9072 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix some problems with HTML5 stylesheets. Add tests for "tuftig.css".milde2022-06-134-0/+285
| | | | | | | Ignore footnote back-references, when copying from Firefox. Small tweaks for tuftig.css. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9070 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Remove class value "controls" from an `image` node with video contentmilde2022-05-061-1/+1
| | | | | | | | | | | after converting it to a "control" attribute of the `<video>` tag. Thanks to Agathe Porte for the hint. TODO: discuss other special `<video>` attributes. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9056 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Small fixes to HTML5 output.milde2022-04-294-5/+4
| | | | | | | | Stop writing an empty line before the "footer" closing tag. Add space before "charset" meta tag closing sequence. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9054 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update PEP base URL and template.milde2022-03-1313-26/+22
| | | | | | | | | | | | | | The canonical PEP base URL changed to "peps.python.org/". The PEP-writer template.txt added a "source" link that no longer works due to sources now only be stored on github and having two possible file extensions ("txt" or "rst"). Adapt the header to resemble the header of official PEP documents (which are now produced using Sphinx). Fixes [bug:#445]. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9045 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Simplify code as dicts have fixed order since 3.6milde2022-03-051-1/+1
| | | | | | | We no longer need to sort a dictionary from `**kwargs` in order to have a fixed order for stable tests. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9029 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix imports.milde2022-03-051-3/+3
| | | | | | | | flake8 rules E401: multiple imports on one line E402: module level import not at top of file git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9027 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ensure 2 blank lines around top-level functions and classes.milde2022-03-041-0/+2
| | | | | | | | flake8 rules E302: expected 2 blank lines, found 1 E305: expected 2 blank lines after class or function definition git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9026 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ensure at least two spaces before inline comment.milde2022-03-041-1/+1
| | | | | | | | | flake 8 rule E261 Exceptions for modules sheduled for removal or with 3rd-party origin and for data collections. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9021 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Write table column widths with 3 digits precision. Fixes bug #444.milde2022-02-191-3/+3
| | | | | | | | | | | | | | | Bug #444 reports visible effects of rounding errors with the current rounding to integer percentages (e.g. 7 columns 13% and one 9% for 8 columns of equal width). Allow a fractional part (1 digit) when table column widths are written as percentages in the "colgroup". Use f-string literal to format coefficient as percentage. CSS allows decimal numbers (since CSS1) in the specification of percentages. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@9009 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (non-Python files).milde2022-01-2923-52/+36
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8995 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix code indentationmilde2022-01-293-6/+3
| | | | | | | | | | | | | | | | | | | | Check conformance to our coding policies with flake8. Fix the following problems: E111 indentation is not a multiple of four E114 indentation is not a multiple of four (comment) E115 expected an indented block (comment) E116 unexpected indentation (comment) E117 over-indented E121 continuation line under-indented for hanging indent E122 continuation line missing indentation or outdented E124 closing bracked does not match visual indentaion E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E131 continuation line unaligned for hanging indent git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (flake warnings W293, W391).milde2022-01-292-4/+0
| | | | | | | W293 blank line contains whitespace W391 blank line at end of file git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8993 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix trailing whitespace (flake warning W291).milde2022-01-293-3/+3
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8992 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Update base URL config settings defaults.milde2022-01-2113-25/+25
| | | | | | | | | The default values for the "pep-references", "rfc-base-url", and "python-home" `configuration settings`_ now uses the "https:" scheme. Based on a patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8960 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change http://docutils.sourceforge.net -> https://docutils.sourceforge.iomilde2022-01-2034-39/+39
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8956 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Change http://docutils.sf.net -> https://docutils.sourceforge.iomilde2022-01-202-2/+2
| | | | | | Patch by Adam Turner. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8954 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Set version to 0.19b.dev.milde2021-12-2317-17/+17
| | | | | | | | | | Leaving the 0.18 maintenance mode. Note: We may skip 0.19 if the next release is "1.0-ready" (depending on consensus on backwards compatibility policy and definition/documentation of the public part of the API). git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8914 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.18.2b0grubert2021-11-2317-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8903 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Release 0.18.1grubert2021-11-2317-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8900 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Version: 0.18.1b1.devgrubert2021-11-1817-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8894 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Version: 0.18.1bgrubert2021-11-1817-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8893 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix behaviour of get_stylesheet_list()milde2021-11-172-6/+7
| | | | | | | Do not look up stylesheets given as "stylesheet" setting. Cf. bug #434. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8891 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add DeprecationWarnings and FutureWarnings for planned changes.milde2021-11-0515-3/+30
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8880 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release 0.18.1b.devgrubert2021-10-2617-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8867 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version 0.18grubert2021-10-2617-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8864 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* release number 0.18b2.devgrubert2021-10-0517-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8848 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Release 0.18b1grubert2021-10-0517-17/+17
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8845 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* relative stylesheet_dirs to make test passgrubert2021-10-052-2/+5
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8844 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* add symlink to responsive.css grubert2021-10-031-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8839 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5: New default for table column widths (fixes bug #426).milde2021-10-0111-66/+15
| | | | | | | | | Only specify table column widths, if the "widths" option is set and is not "auto". The `table_style`_ setting "colwidths-grid" restores the current default. git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk@8836 929543f6-e4f2-0310-98a6-ba3bd3dd1d04