summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Change to 0.15 finaldocutils-0.15@8267grubert2019-07-2015-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8267 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: assert serial is 0 grubert2019-07-201-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8266 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* set version 0.15rc1.devgrubert2019-07-2015-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8263 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply feature request 63 (support anchors in rfc role).milde2019-04-151-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8254 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Converted odf_odt for compatibility with both Python 2 and Python3dkuhlman2019-02-121-4/+3
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8248 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Use compatibility definitions for assertIn and assertNotIn only if required.milde2019-02-121-11/+12
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8245 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #358: Non-breaking space removed from fixed-width literal.milde2019-02-121-0/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8244 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Specify Python version requirements in setup.py.milde2018-11-261-2/+1
| | | | | | | | Also drop a version check for no-longer supported versions 3.1 and 3.2. Patch [ 145 ] by Hugo. Thanks. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8241 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Definition list terms must not use "rawsource" attribute for escaping.milde2018-11-211-8/+0
| | | | | | | | | | Remove implementation of escaping the classifier delimiter in definition list terms that relies on the "rawsource" attribute. This is not safe (rawsource is only for information and debugging purposes). A proper fix can be done with null-escaped text in Text nodes. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8236 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Revert the fix for backslash escaping in transforms.milde2018-11-211-109/+8
| | | | | | | | | Still waiting for review. Reverts last three commits from a local "feature branch" unintentionally applied to trunk with `git svn`. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8235 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes: Use single backslashes for escaping.milde2018-11-201-8/+109
| | | | | | | | Let the smartquote transform take advantage of the representation of escaping backslashes in the doctree as null characters. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8234 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* DocInfo transform must not use "rawsource" attribute for escaping.milde2018-11-202-52/+48
| | | | | | | | | | | Remove implementation of escaping author-separators in bibliographic fields that relies on the "rawsource" attribute. This is not safe (rawsource is only for information and debugging purposes). A proper fix can be done with null-escaped text in the doctree. C.f. https://sourceforge.net/p/docutils/bugs/_discuss/thread/c8f86be6/74ed/attachment/null-escape-in-doctree2.patch git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8231 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been ↵grubert2018-09-091-0/+15
| | | | | | deprecated (thanks to hugovk). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8228 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix: definition list term classifier starting with a reference crash.grubert2018-07-121-0/+38
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8224 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* tests to inline literal open and close grubert2018-07-111-0/+30
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8223 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* latex writer: fix fallback definition of \DUroles macro.milde2018-06-058-32/+64
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8218 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Html5 writer: Correctly sort docinfo and subtitle into "parts" dict.milde2018-06-053-23/+473
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8217 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop empty lines in Text.pformat() and revert [r8194].milde2018-01-191-6/+4
| | | | | | | Keep "rawsource" attribute untouched in Text.rstrip() and Text.lstrip(). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8214 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 251 ] system_message.copy() TypeError. Fix nodes.Element.copy()milde2018-01-161-0/+3
| | | | | | | | | Avoid clash with multiple values for keyword argument "rawsource". Let nodes.Element.copy() also copy "document", "line", and "source" attributes. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8212 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix a typo.milde2018-01-141-10/+10
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8210 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add <target> to one more testcase (see r8206).milde2017-12-191-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8207 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add tagname to "illegal element" substitution definition error message.milde2017-12-183-5/+5
| | | | | | | Be a bit more verbose when detecting nodes that are disallowed inside substitution definitions. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8206 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Cleanup: remove <2.6 compatibility code.milde2017-11-081-5/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8201 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Properly escape LaTeX commands in test samples.milde2017-11-064-21/+21
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8200 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Move tests for (un)escaping functions to test_utils.milde2017-11-062-45/+12
| | | | | | The functions moved in 0.3.7 (2004-12-24). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8199 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Ignore backslash-escaped separators when extracting authors from a paragraph.milde2017-11-041-0/+43
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8198 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* New function `utils.unescape_rawsource`.milde2017-11-041-0/+16
| | | | | | | | | Removes backslashes and backslash-escaped whitespace from `rawsource` arguments. Required for fixes in definition list terms, author docinfo extraction, and smartquote escaping. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8195 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* `Text.rstrip` and `Text.lstrip` now handle `rawsource` attribute.milde2017-11-041-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8194 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* smartquotes: Fix bug #332.milde2017-10-251-6/+36
| | | | | | | | Use open quote after whitespace, ZWSP, and ZWNJ. Code cleanup. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8190 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Rename files to care for case-insensitive file systems.milde2017-10-202-1/+1
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8189 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix bug #331: fixed the "trim" options of the "unicode" directive.goodger2017-10-207-50/+81
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8188 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix :width: option for the table directives.milde2017-10-1910-21/+162
| | | | | | | | | | * add table width argument in docutils.dtd * support table width argument in html and latex writers * fix support in "csv-table" directive * add test cases. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8187 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Apply [ 121 ] Add a :width: option for the table directives.milde2017-10-061-0/+69
| | | | | | Thanks to Brecht Machiels for the patch. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8184 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Add field name as class argument to generic docinfo fields unconditionally.milde2017-10-061-9/+9
| | | | | | | | | | Also add the field name, if the DocInfo tranform fails to converts a bibliographic field list into a docinfo element. This allows styling of, e.g., a "copyright" element that also contains a license as separate paragraph when suppressing the warning (cf. Bug [325]). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8183 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fixes and test for literal block handling in LaTeX.milde2017-09-2213-14/+1010
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8180 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* HTML5-compatible meta tags for docinfo items authors, date, and copyright.milde2017-09-141-0/+6
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8179 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 324 ] Invalid LaTeX for table with empty multicolumn cell.milde2017-09-071-2/+24
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8174 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* 0.15.dev must not be used after 0.15b or 0.15rc.milde2017-08-181-0/+15
| | | | | | | | | | According to PEP 440, <major>.<minor>.dev must be sorted before <major>.<minor><pre>.dev. As we agreed on default releaselevel "beta" for development, the ".dev" suffix should not be used without a pre-release segment for Docutils versions. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8173 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Added a test case and updated docs/ref/rst/restructuredtext.txt for ↵goodger2017-08-171-0/+88
| | | | | | interpreted text in field list field names. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8172 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Extra test for meta field list field name with unescaped embedded colons.goodger2017-08-161-0/+9
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8170 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* * docutils/parsers/rst/states.py: Allow embedded colons in field list field ↵goodger2017-08-162-0/+62
| | | | | | | | | names (also updated docs/ref/rst/restructuredtext.txt). * docutils/parsers/rst/directives/html.py: [Fix for bug 281:] Allow backslash-escaped colons in meta directive field list field names (also updated docs/dev/todo.txt). * Added tests for the above. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8169 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* * Consolidated version identifier documentation, moving text from ↵goodger2017-08-151-1/+6
| | | | | | | | | | docutils/__init__.py to docs/dev/policies.txt. * Cleaned up version-related code in docutils/__init__.py. * Reworked the Version Numbering section in docs/dev/policies.txt. * Added test/test_utils.HelperFunctionTests.test_implicit_version_identifier to test the implicit use of docutils.utils.version_identifier(). git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8167 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Test __version_info__.releaselevel values.milde2017-08-151-8/+8
| | | | | | | Also rename the test functions according to the scheme and replace a comment in the docstring with explicit code. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8166 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* * Consolidated version numbering documentation in docs/dev/policies.txt ↵goodger2017-08-142-16/+35
| | | | | | | | | | (moved text from docs/dev/release.txt). * Updated docutils.utils.version_identifier for Python 2.6 (docutils.VersionInfo). * Moved code from tests/test/test_utils.py::HelperFunctionsTests.test_version_identifier to tests/test__init__.py::VersionInfoTests.test_version_identifier; uncommented lines in tests/test__init__.py::VersionInfoTests.test_version_info. * Added new tests/test/test_utils.py::HelperFunctionsTests.test_version_identifier. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8165 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop 2.4 and 2.5 compatibility code, part 2.milde2017-08-1411-59/+49
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8164 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Drop compatibility code for Python 2.4 and 2.5.milde2017-08-116-8/+11
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8163 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* Fix [ 323 ]: do not add ``\\\\phantomsection`` and whitespace to ↵milde2017-08-088-28/+11
| | | | | | ``parts["title"]. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8161 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* change version to 0.15b.devgrubert2017-08-0815-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8159 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* version to 0.15.devgrubert2017-08-0315-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8157 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
* set version 0.14 finalgrubert2017-08-0315-15/+15
| | | | git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@8147 929543f6-e4f2-0310-98a6-ba3bd3dd1d04