1 .. include:: docs/header0.txt
7 :Author: David Goodger; open to all Docutils developers
8 :Contact: docutils-develop@lists.sourceforge.net
11 :Web site: https://docutils.sourceforge.io/
12 :Copyright: This document has been placed in the public domain.
20 * Drop support for Python 3.7 and 3.8.
24 - Simpler and more secure `input encoding`_ default behaviour:
26 Do not use the locale encoding as fallback if Python is started in
27 `UTF-8 mode`_. Stop using "latin1" as second fallback.
29 Remove BOM (U+FEFF ZWNBSP at start of data) only if the `input_encoding`_
30 configuration setting is None, '', 'utf-8-sig', 'utf-16', or 'utf-32'.
31 Do not remove other ZWNBSPs.
33 - Auto-close `FileInput.source` in case of reading/decoding errors.
35 .. _UTF-8 mode: https://docs.python.org/3/library/os.html#utf8-mode
36 .. _input encoding: docs/api/publisher.html#encodings
40 - Remove compatibility hacks `nodes.reprunicode` and `nodes.ensure_str()`.
42 * docutils/parsers/rst/directives/tables.py
44 - Use the same CSV format for the ``:header:`` option and the main data
45 of the "csv-table" directive.
47 - Move `parsers.rst.directives.Table.process_header_option()` to
48 `parsers.rst.directives.CSVTable`.
50 * docutils/parsers/rst/languages/
52 Mark/Fix mistranslated localizations of the "admonition" directive name.
53 In Docutils, "admonition" is used as a generic term for
54 "advice"/"advisory"/"remark", not a reprimand.
56 * docutils/utils/roman.py
58 - Update to version `1.4 <https://pypi.org/project/roman/4.1/>`__.
59 Fixes feature-requests:#95 (license is now ZPL 2.1).
61 * docutils/writers/latex2e/__init__.py
63 - Fix placement of hyperlink target (label) for tables (bug #440).
65 * docutils/writers/odf_odt/__init__.py
67 - Use context manager for image reading operations.
68 Catch `URLError` when `urllib.request.urlopen()` fails.
70 - Convert image URI to path if accessing a local file. Fixes bug #153.
72 * docutils/writers/s5_html/__init__.py
74 - Warn if the S5 writer cannot copy the theme files.
76 - Programmatic customization of "theme_url__" setting no longer
77 overridden by the default for "theme__".
79 __ docs/user/config.html#theme-url
80 __ docs/user/config.html#theme
82 * docutils/writers/_html_base.py
84 - Stop setting the "footnote-reference" class value for footnote references.
85 Since 0.18, you can use the CSS selector ``[role="doc-noteref"]``.
87 - Support reading/embedding images with "file:" URIs.
89 - Warn, if image scaling fails because the image file cannot be read.
92 Release 0.20.1 (2023-05-17)
93 ===========================
95 * docutils/MANIFEST.in
97 - Include tox.ini and docutils.conf in the source package
98 (cf. bug #467 and bug #461).
100 * tools/rst2odt_prepstyles.py
102 - Moved to ``docutils/writers/odf_odt/prepstyles.py``.
103 Replaced with a provisional backwards compatibility script.
106 Release 0.20 (2023-05-09)
107 =========================
111 - Docutils 0.20 is the last version supporting Python 3.7 and 3.8.
112 - Support Python 3.11 (patch #198 by Hugo van Kemenade).
116 - New functions `rst2…()` for use as "console_scripts" `entry points`_.
117 (cf. `Future changes` in the RELEASE-NOTES_).
119 * docutils/frontend.py
121 - New configuration setting "output_". Obsoletes the ``<destination>``
122 positional argument (cf. `Future changes` in the RELEASE-NOTES_).
124 * docutils/languages/
125 docutils/parsers/rst/languages/
127 - Support Ukrainian. Patch by Dmytro Kazanzhy.
131 - Fix `previous_sibling()` method that led to invalid HTML in some cases
133 - Fix bug #463. Spurious comma in deprecation warning.
135 * docutils/parsers/recommonmark_wrapper.py
137 - Improved mock Sphinx module.
139 * docutils/transforms/__init__.py
141 - `Transformer.populate_from_components()` now silently ignores
142 components that are not instances of `docutils.TransformSpec`.
144 * docutils/transforms/frontmatter.py
146 - Accept author names with initials like ``A. Einstein`` in the "author"
147 `bibliographic field`_ instead of rising an error
148 (generally, such names are `parsed as enumerated list`__).
150 .. _bibliographic field:
151 docs/ref/rst/restructuredtext.html#bibliographic-fields
152 __ docs/ref/rst/restructuredtext.html#enumerated-lists
154 * docutils/transforms/references.py
156 - `DanglingReferences` ignores `citation_reference` nodes if the
157 "use_bibex" setting is active. (In this case, citations are provided
158 by LaTeX/BibTeX.) Fixes bug #384.
160 * docutils/utils/__init__.py
162 - New utility function `xml_declaration()`.
163 - `DependencyList.add()` accepts `pathlib.Path` instances.
164 - `find_file_in_dirs()` now returns a POSIX path also on Windows;
165 `get_stylesheet_list()` no longer converts ``\`` to ``/``.
167 * docutils/utils/math/latex2mathml.py
169 - Support "mod" notation for modulo operation / modulus arithmetic.
171 * docutils/utils/math/tex2mathml_extern.py
173 - Support `Pandoc` as alternative LaTeX to MathML converter.
176 * docutils/writers/_html_base.py
178 - Refactoring of `HTMLTranslator` initialization and collecting of
179 document "parts". Adapt HTML writers importing `_html_base`.
181 Changes to the HTML output (no space character before closing tag of
182 XML declaration, order of metadata elements)
183 don't affect the HTML semantics, styling, and rendering.
185 - Wrap definition lists with "details" class argument in a <div>
186 with the "id" and "class" values of the list node.
188 - Use dpub-ARIA role "doc-footnote__" (instead of ARIA role "note")
191 __ https://www.w3.org/TR/dpub-aria-1.1/#doc-footnote
193 * docutils/writers/latex2e/__init__.py
195 - Do not load the `inputenc` package in UTF-8 encoded LaTeX sources.
196 (UTF-8 is the default encoding for LaTeX2e since 2018).
197 - Fix behaviour of the use_bibtex_ setting.
198 - Outsource parts of `depart_document()` to new auxiliary methods
199 `make_title()` and `append_bibliography()`.
200 - Ensure POSIX paths in stylesheet loading macros.
202 * docutils/writers/latex2e/titlepage.tex
204 - Drop ``\usepackage{fixltx2e}`` from template.
205 (Obsolete since 2015 and dropped from other templates in Docutils 0.14.)
207 * docutils/writers/manpage.py
209 - Do not output empty "manual" in ``.TH``.
211 * docutils/writers/xetex/__init__.py
213 - Ignore settings in the [latex2e writer] configuration file section.
214 Place common settings in section [latex writers].
218 - Fix SetuptoolsDeprecationWarning: ``Installing '' as data is deprecated``
219 by adding data directories to package_data.packages list.
223 - Extracted flake8 configuration and moved to ``.flake8``.
224 - changedir to directory ``test`` to avoid path problems.
228 - Refactored tests to use common `unittest` idioms.
229 Fixes errors when running the test suite with ``python -m unittest``
230 or external test frameworks, such as Pytest_.
232 .. _pytest: https://pypi.org/project/pytest/
236 - Removed. Use the coverage.py_ project instead,
237 ``coverage run test/alltests.py`` and ``coverage report``.
239 .. _coverage.py: https://pypi.org/project/coverage/
243 - Moved ``quicktest.py`` to ``tools/dev/``.
246 Release 0.19 (2022-07-05)
247 =========================
251 - Dropped support for Python 2.7, 3.5, and 3.6. and removed compatibility
252 hacks from code and tests.
254 check PEP 8 conformity with `flake8` (exceptions in file tox.ini).
256 * docutils/__main__.py
258 - New module. Support for ``python -m docutils``.
259 Also used for the ``docutils`` console script `entry point`_.
263 - Let `Publisher.publish()` print info and prompt when waiting for input
264 from a terminal (cf. https://clig.dev/#interactivity).
265 - Respect `input_encoding_error_handler`_ setting when opening a source.
269 - New function `error_string()`
270 obsoletes `utils.error_reporting.ErrorString`.
271 - Class `ErrorOutput` moved here from `utils.error_reporting` module.
272 - Use "utf-8-sig" instead of Python's default encoding if the
273 `input_encoding`_ setting is None.
274 - Fix error when reading of UTF-16 encoded source without trailing newline.
275 - Suppress deprecation warning (fixes bug #464).
277 * docutils/parsers/__init__.py
279 - Aliases "markdown" and "commonmark" point to "commonmark_wrapper".
280 - Alias for the "myst" parser (https://pypi.org/project/myst-docutils).
281 - Use absolute module names in `_parser_aliases` instead of two
282 import attempts. (Keeps details if the `recommonmark_wrapper` module
283 raises an `ImportError`.)
284 - Prepend parser name to `ImportError` if importing a parser class fails.
286 * docutils/parsers/commonmark_wrapper.py
288 - New module for parsing CommonMark input. Selects a locally installed
289 3rd-party parser (`pycmark`, `myst`, or `recommonmark`).
291 * docutils/parsers/recommonmark_wrapper.py
293 - Raise `ImportError`, if import of the upstream parser module fails.
294 If called from an `"include" directive`_,
295 the system-message now has source/line info.
296 - Adapt to and test with `recommonmark` versions 0.6.0 and 0.7.1.
298 .. _"include" directive: docs/ref/rst/directives.html#include
300 * docutils/parsers/rst/__init__.py
302 - Update PEP base URL (fixes bug #445),
303 use "https:" scheme in RFC base URL.
304 - Add `reporter` to `Directive` class attributes.
306 * docutils/parsers/rst/directives/__init__.py
308 - `parser_name()` keeps details if converting `ImportError` to `ValueError`.
310 * docutils/parsers/rst/roles.py
312 - Don't use mutable default values for function arguments. Fixes bug #430.
314 * docutils/transforms/universal.py
316 - Fix bug #435: invalid references in `problematic` nodes
319 * docutils/utils/__init__.py
321 - `decode_path()` returns `str` instance instead of `nodes.reprunicode`.
323 * docutils/utils/error_reporting.py
325 - Add deprecation warning.
327 * docutils/writers/_html_base.py
329 - Add "html writers" to `config_section_dependencies`. Fixes bug #443.
330 - Write table column widths with 3 digits precision. Fixes bug #444.
332 * docutils/writers/html5_polyglot/__init__.py
334 - Add space before "charset" meta tag closing sequence.
335 - Remove class value "controls" from an `image` node with video content
336 after converting it to a "control" attribute of the <video> tag.
337 - Wrap groups of footnotes in an ``<aside>`` for easier styling.
339 * docutils/writers/pep_html/
341 - Use "https:" scheme in "python_home" URL default.
342 - Fix links in template.txt.
346 - New ``docutils``" console script `entry point`_. Fixes bug #447.
350 - Always encode the log file ``alltests.out`` using "utf-8".
352 * test/DocutilsTestSupport.py
354 - `exception_data()` now returns None if no exception was raised.
355 - `recommonmark_wrapper` only imported if upstream parser is present.
357 * test/test_parsers/test_rst/test_directives/test_tables.py
359 - Fix bug #436: Null char valid in CSV since Python 3.11.
361 * tools/docutils-cli.py
363 - Allow 3rd-party drop-in components for reader and parser, too.
365 - Actual code moved to docutils.__main__.py.
367 * tools/rst2odt_prepstyles.py
369 - Options ``-h`` and ``--help`` print short usage message.
373 https://packaging.python.org/en/latest/specifications/entry-points/
376 Release 0.18.1 (2021-11-23)
377 ===========================
381 - `Node.traverse()` returns a list again to restore backwards
382 compatibility. Fixes bug #431.
384 - New method `Node.findall()`: like `Node.traverse()` but returns an
385 iterator. Obsoletes `Node.traverse()`.
387 * docutils/utils/__init__.py
389 - Fix behaviour of `get_stylesheet_list()`: do not look up stylesheets
390 given as `stylesheet`_ setting. Cf. bug #434.
392 * docutils/writers/_html_base.py
394 - Fix handling of ``footnote_backlinks == False`` (report Alan G Isaac).
396 * docutils/writers/html5_polyglot/math.css
398 - Fix typo (bug #432).
400 * docutils/writers/odf_odt/__init__.py
402 - Fix spurious output with Windows (bug #350).
404 * test/test_error_reporting.py
406 - Fix a false positive (bug #434).
409 Release 0.18 (2021-10-26)
410 =========================
412 * docutils/frontend.py
413 - Mark as provisional (will switch from using `optparse` to `argparse`).
414 - Remove hack for the now obsolete "mod_python" Apache module.
415 - New function `get_default_settings()`.
419 - Don't change a list while looping over it (in
420 `document.set_name_id_map()`). Thanks to Mickey Endito.
422 * docutils/parsers/recommonmark_wrapper.py
424 - Test and update to work with `recommonmark` version 0.6.0.
427 Unfortunately, recommonmark_ is `no longer maintained`__.
429 __ https://github.com/readthedocs/recommonmark/issues/221
431 * docutils/parsers/rst/directives/misc.py
433 - Fix bug #424 Wrong circular inclusion detection.
434 Use a "magic" comment instead of line numbers
435 to keep a log of recursive inclusions.
437 * docutils/parsers/rst/states.py
439 - Use a "magic" comment to update the log of recursive inclusions.
441 * docutils/writers/html5_polyglot/__init__.py
443 - New option `image_loading`_. Support "lazy" loading of images.
444 Obsoletes `embed_images`_.
446 * docutils/writers/pseudoxml.py
448 - Fix spelling of setting `detailed`_.
450 * tools/docutils-cli.py
452 - Read settings from standard configuration files.
454 Fix spelling errors in documentation and docstrings.
455 Thanks to Dimitri Papadopoulos.
458 Release 0.18b1 (2021-10-05)
459 ===========================
461 * docutils/frontend.py
463 - The default value for the `auto_id_prefix`_ setting changed to "%":
464 auto-generated IDs use the tag name as prefix.
468 - Make meta__ a standard Docutils doctree node. Writers may ignore
469 `meta` nodes if they are not supported by the output format.
471 __ docs/ref/doctree.html#meta
473 - document.make_id(): Do not strip leading number and hyphen characters
474 from `name` if the `id_prefix`_ setting is non-empty.
476 - `Node.traverse()` returns an iterator instead of a list.
478 * docutils/parsers/rst/directives/html.py
480 - Removed. (Meta directive moved to ``misc.py``.)
482 * docutils/parsers/rst/directives/misc.py
484 - `Meta` directive class (moved from html.py) inserts `meta`
485 (instead of `pending`) nodes.
487 - Add `class` option to `Raw` directive.
489 * docutils/parsers/rst/directives/tables.py
491 - Unify behaviour of `"widths" option`_: check that the length of an
492 integer list equals the number of table columns also for the "table"
495 * docutils/tools/math/math2html.py,
496 docutils/tools/math/tex2unicode.py,
497 docutils/writers/html5/math.css
499 - Fork from elyxer and remove code that is not required
501 - Scale variable sized operators and big delimiters with CSS
502 - Support more commands, fix mapping of commands to Unicode characters
503 (cf. `LaTeX syntax for mathematics`_).
504 - Fix bug #244 Wrong subscript/superscript order.
505 - Don't use <tt> element (deprecated in HTML5).
506 - Use STIX fonts if available.
508 .. _LaTeX syntax for mathematics: docs/ref/rst/mathematics.html
510 * docutils/parsers/rst/states.py
512 - Fix source location (line number) for attribution elements.
513 Patch by Mickey Endito.
514 - Add line, source, and rawsource internal attributes for blockquote
515 elements. Patch by Mickey Endito.
517 * docutils/transforms/references.py
519 - Skip system_messages when propagating targets. Fixes bug #425.
521 * docutils/utils/__init__.py
523 - Removed `unique_combinations()` (obsoleted by `itertools.combinations()`).
525 * docutils/utils/latex2mathml.py
527 - Major update (fixes and support for additional commands and symbols).
530 * docutils/writers/_html_base.py
532 - Write footnote brackets and field term colons to HTML, so that
533 they are present also without CSS and when copying text.
534 Adapt ``minimal.css``.
536 - Use semantic tags <aside> for footnote text, topics, admonitions,
537 and system-messages and <nav> for the table of contents. Use <div>
540 - Only specify table column widths, if the `"widths" option`_ is set
541 and is not "auto" (fixes bug #426).
542 The `table_style`_ setting "colwidths-grid" restores the current default.
544 .. _"widths" option: docs/ref/rst/directives.html#column-widths
546 - Use ARIA roles to enable accessible HTML for abstract, dedication,
547 the table of contents, footnote, references, footnotes, citations,
550 - Use "aria-level" attribute instead of invalid tags <h7>, <h8>, ...
551 for headings of deeply nested sections.
553 - Do not set classes "compound-first", "compound-middle", or
554 "compound-last" to elements nested in a compound.
555 Use class value "backrefs" instead of "fn-backref" for a span of
558 - Do not write class values handled by the HTML writer ("colwidths-auto",
559 "colwidths-given", "colwidths-grid") to the output.
561 - Move space character between section number and heading into
564 - Removed attribute `HTMLTranslator.topic_classes`
566 - Items of a definition list with class argument "details" are
567 converted to <details> disclosure elements.
569 * docutils/writers/html4css1/__init__.py
571 - Overwrite methods in _html_base.HTMLTranslator that use HTML5 tags
572 (details, aside, nav, ...) and attributes (role, aria-level).
574 * docutils/writers/latex2e/__init__.py
576 - The setting `legacy_class_functions`_ now defaults to "False".
577 Adapt stylesheets modifying ``\DUadmonition`` and/or ``\DUtitle``.
579 - Apply patch #181 "Fix tocdepth when chapter/part in use" by
580 John Thorvald Wodder II.
582 - Fix newlines after/before `ids_to_labels()` (cf. patch #183).
584 - Refactor/revise ToC writing.
586 - Don't add ``\phantomsection`` to labels in math-blocks.
588 - Improve spacing and allow customization of Docutils-generated table
591 - New algorithm for table column widths. Fixes bug #422.
592 New configuration setting `legacy_column_widths`_.
594 `Table.set_table_style()` arguments changed.
596 Only write "continued on next page..." if it fits
597 without making the table columns wider.
599 Table "width" option overrides conflicting "auto" column "widths".
601 * docutils/writers/latex2e/docutils.sty
603 - Fix excessive padding above sidebar titles.
605 * docutils/writers/pseudoxml.py
607 - Fix option `detailed`_ under Python 2.7.
609 * docutils/writers/s5_html/themes/default
611 - Remove IE 6 compatibility workarounds ``iepngfix.htc`` and
612 ``blank.gif`` (fixes bug #169).
614 * docutils/writers/manpage.py
616 - Fix: double quotes need to be escaped on macro invocation.
620 Release 0.17.1 (2021-04-16)
621 ===========================
623 * docutils/utils/math/latex2mathml.py
625 - Fix bug #406 (MathML translation of ``\mathbf``).
627 * docutils/writers/latex2e/__init__.py
629 - Open ``docutils.sty`` with encoding set to "utf-8".
630 Fixes bug #414: error with Py3k when locale encoding is "ascii".
632 * docutils/parsers/*.py, docutils/transforms/*.py
634 - Provide fallbacks for parser config settings
635 to facilitate programmatic use.
637 * docutils/writers/manpage.py
639 - Apply patch #160: move macro defs above ``.TH``
640 (thanks Willie and sorry for the delay).
643 Release 0.17 (2021-04-03)
644 =========================
648 - Installing with ``setup.py`` now requires `setuptools`.
649 Alternatively, install with `pip`_ (or "manually").
650 - Use `importlib.import_module()` to programmatically import modules.
651 - Fix bug #385: Import of language modules.
653 .. _pip: https://pypi.org/project/pip/
655 * docutils/MANIFEST.in
657 - Exclude test outputs.
659 * docutils/__init__.py
661 - VersionInfo: `ValueError` for invalid values, fix comparison to tuples.
663 * docutils/languages/
664 docutils/parsers/rst/languages/
666 - Apply patch # 177 Arabic mappings by Shahin.
667 - Apply patch for bug #399 Fixes in Korean translation by Shinjo Park.
671 - Apply patch #165 "Fix error when copying `system_message` node"
673 - Apply version of patch #167 "Let `document.set_id()` register all
674 existing IDs". Thanks to Takeshi KOMIYA.
675 - Fix bug #410: Use a "property" function to recursively fetch
676 `Node.document` value from parent node.
678 * docutils/parsers/recommonmark_wrapper.py
680 - New, **experimental** wrapper to integrate the
681 `recommonmark`_ Markdown parser for use with Docutils.
682 Currently only tested with `recommonmark` version 0.4.0.
684 .. _recommonmark: https://pypi.org/project/recommonmark/
686 * docutils/parsers/rst/directives/body.py
688 - Make the sidebar's "title" argument optional (feature request #69).
690 * docutils/parsers/rst/directives/html.py
692 - Make `meta` elements available for "latex" and "odt" writers.
694 * docutils/parsers/rst/directives/misc.py
696 - Prevent infinite inclusion loops.
698 * docutils/parsers/rst/roles.py
700 - Apply patch #174 "Lowercase new role names on registration"
701 by John Thorvald Wodder II.
703 * docutils/utils/smartquotes.py
705 - Fix bug #383: Smart quotes around opening and separator characters.
707 * docutils/transforms/components.py
709 - Allow a comma-separated list of formats for the Filter transform.
711 * docutils/writers/html*
713 - Implement feature request #40 "Option to embed images as data URI".
715 * docutils/writers/html5_polyglot/__init__.py
717 - Use the new semantic tags <main>, <section>, <header>,
718 <footer>, <aside>, <figure>, and <figcaption>.
719 See ``minimal.css`` and ``plain.css`` for styling rule examples.
721 Change the `initial_header_level`_ setting default to "2", as browsers
722 use the `same style for <h1> and <h2> when nested in a <section\>`__.
724 __ https://stackoverflow.com/questions/39547412/same-font-size-for-h1-and-h2-in-article
726 - Use HTML text-level tags <small>, <s>, <q>, <dfn>, <var>, <samp>, <kbd>,
727 <i>, <b>, <u>, <mark>, and <bdi> if a unique, matching class value
728 is found in `inline`__ and `literal`__ elements.
729 Use <ins> and <del> if a unique matching class value
730 is found in `inline`, `literal`, or `container` elements.
731 Use <small> for generated code line numbers.
733 __ docs/ref/doctree.html#inline
734 __ docs/ref/doctree.html#literal
736 - Fix bug #398: properly close link tag to "schema.dcterms".
738 - Add a `viewport meta tag`__ to fix rendering in mobile browsers.
740 __ https://developer.mozilla.org/en-US/docs/Web/HTML/Viewport_meta_tag
742 - Use <video> for images with video MIME types supported by HTML5.
744 * docutils/writers/html5_polyglot/minimal.css
746 - Move non-essential styling to ``plain.css``.
747 Small fixes and tweaks.
749 - Support "captionbelow" class value for tables.
751 - Display code line numbers as pseudo-elements which are skipped
752 when copying text from code blocks. Solves feature request #32.
754 * docutils/writers/html5_polyglot/plain.css
756 - Support numbered figures.
758 * docutils/writers/html5_polyglot/responsive.css
760 - New optional style that adapts to different screen sizes.
762 * docutils/writers/latex2e/__init__.py
764 - Use LaTeX environments for admonitions and "class wrappers" for styling
765 admonitions and titles if the new configuration setting
766 `legacy_class_functions`_ is False.
768 - Remove backwards compatibility code for the deprecated
769 `styling command`__ prefix ``\docutilsrole``.
771 __ docs/user/latex.html#custom-interpreted-text-roles
773 - Remove legacy LaTeX stylesheet ``docutils-05-compat.sty``.
775 - Support the `memoir` LaTeX document class.
776 Fixes bugs #390, #391, and #392. Thanks to John Thorvald Wodder II.
778 - The special value "auto" for the `graphicx_option`_ setting
779 is no longer supported (it never worked for xetex/luatex).
781 - Most helper commands and element definitions are now defined in the
782 LaTeX package `docutils.sty`_ and only inserted in the document
783 preamble if the `stylesheet`__ setting does not list "docutils".
785 .. _docutils.sty: https://ctan.org/pkg/docutils
786 __ docs/user/config.html#stylesheet-latex-writers
788 - Apply patch #173 "Make \*TeX writers convert nonstandard table
789 classes to DUclass environments" by John Thorvald Wodder II.
791 - Fix bug #408 "Incorrect assert in latex writer
792 for multiple citation references".
794 - Apply patch #175 "Fix alignment of nested tables"
795 by John Thorvald Wodder II. Additional fixes to table alignment.
797 - Do not write Docutils-generated ToC, when ``use_latex_toc == True``.
798 (This did happen when publishing from a doctree.)
800 - Set PDF document properties from "meta" directive content.
802 - Apply version of patch #176 "LaTeX writer: Append ``\leavevmode`` to
803 non-docinfo field names" by John Thorvald Wodder II.
805 * docutils/writers/manpage.py
807 - Fix #394 fix missing new line after rubric.
808 - Patch #168 fix crashing on empty citation (by Takeshi KOMIYA).
809 - Fix #126 manpage title with spaces.
810 - Fix #380 command line option problem in sphinx.
812 * docutils/writers/odf_odt/__init__.py
814 - Fix/improve metadata handling:
815 fix "keyword" splitting,
816 allow generic fields (stored as "Custom Properties").
818 * docutils/writers/pseudoxml.py
820 - New option `detailled`_.
822 * test/DocutilsTestSupport.py
824 - Run python3 test like python2 against source not the build/-directory
826 * tools/docutils-cli.py
828 - New generic command line front end that allows the free selection of
829 reader, parser, and writer components.
832 Release 0.16 (2020-01-16)
833 =========================
837 - Dropped support for Python 2.6, 3.3 and 3.4
838 - Docutils now supports Python 2.7 and Python 3.5+ natively
839 (without conversion by `2to3`).
840 - Keep `backslash escapes`__ in the document tree. Backslash characters in
841 text are be represented by NULL characters in the `text` attribute of
842 Doctree nodes and removed in the writing stage by the node's
845 __ https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#escaping-mechanism
849 - Remove the `handle_io_errors` option from io.FileInput/Output.
853 - Speed up Node.next_node().
854 - If `auto_id_prefix`_ ends with "%", this is replaced with the tag name.
855 - Warn about `Node.traverse()` returning an iterator instead of a list
858 * docutils/statemachine.py
860 - Patch [ 158 ]: Speed up patterns by saving compiled versions (eric89gxl)
862 * docutils/transforms/universal.py
864 - Fix [ 332 ]: Standard backslash escape for smartquotes.
865 - Fix [ 342 ]: No escape in roles descending from `inline literal`.
867 * docutils/utils/__init__.py
869 - `unescape()` definition moved to `nodes` to avoid circular import
870 dependency. Fixes [ 366 ].
872 * docutils/writers/latex2e/__init__.py
874 - Fix topic subtitle.
875 - Make "rubric" bold-italic and left aligned.
876 - Fix [ 339 ] don't use "alltt" or literal-block-environment
877 in admonitions and footnotes.
878 - Deprecation warning for ``\docutilsrole``-prefixed styling commands.
879 - Add "latex writers" to the `config_section_dependencies`.
880 - Ignore classes for `rubric` elements
881 (class wrapper interferes with LaTeX formatting).
883 * docutils/writers/manpage.py
885 - Apply fix for [ 287 ] comma after option is bold.
886 - Apply fix for [ 289 ], line starting with ``.`` in a text.
888 * docutils/writers/odf_odt/__init__.py
890 - Fix: ElementTree.getchildren deprecated warning
892 * docutils/writers/xetex/__init__.py
894 - Add "latex writers" to the `config_section_dependencies`.
898 - Fix: 377 ResourceWarning: unclosed file python3.8
899 Close alltests.out with atexit.
903 - Fix: 377 ResourceWarning: unclosed file python3.8
904 Read defaults file with context.
906 - Set `auto_id_prefix`_ to "%" (expands to tag-names).
907 Results in descriptive links in HTML and more localized changes when
908 editions to the input add or remove auto-ids.
912 - Apply patch #157: avoid test failure because of a `ResourceWarning`.
914 * test/test_writers/test_odt.py
916 - Fix [ 359 ]: Test suite fails on Python 3.8. odt XML sorting.
917 Use ElementTree instead of minidom.
921 - New option `html_writer`_.
924 Release 0.15.1 (2019-07-24)
925 ===========================
927 source: branches/rel-0.15
929 Bugs #366 fix release for python2 only.
932 Release 0.15 (2019-07-20)
933 =========================
937 - Dropped support for Python 2.4, 2.5, 3.1, and 3.2.
938 - Infrastructure automation.
940 * docs/ref/rst/restructuredtext.txt
942 - Document rST syntax change: Tokens like ``:this:example:`` are now valid
943 field list names (instead of ordinary text).
947 - Fix [ 348 ] Since Python 3.4, the 'U' universal newlines mode has been
948 deprecated. Thanks to hugovk.
950 * docutils/languages/ko.py, docutils/parsers/rst/languages/ko.py
952 - Apply [ 153 ] Korean mappings by Thomas Sungjin Kang.
956 - Fix [ 251 ] `system_message.copy()` `TypeError`.
957 - `Element.copy()` also copies `document`, `line`, and `source` attributes.
959 * docutils/parsers/rst/__init__.py
961 - Apply [ 152 ] reset `default role` at end of document.
963 * docutils/parsers/rst/states.py
965 - Allow embedded colons in field list field names.
967 * docutils/parsers/rst/directives/html.py
969 - Fix bug #281: Remove escaping backslashes in meta directive content.
971 * docutils/parsers/rst/directives/misc.py
973 - Don't convert tabs to spaces, if `tab_width` is negative in
974 "include" directive with "code" option.
976 * docutils/parsers/rst/directives/tables.py
978 - Apply patch #121: Add "width" option for the table directives.
980 * docutils/transforms/frontmatter.py
982 - Add field name as class argument to generic docinfo fields unconditionally.
984 * docutils/transforms/references.py
986 - Fix bug #331: fixed the "trim" options of the "unicode" directive.
988 * docutils/utils/__init__.py
990 - Deprecate `unique_combination()` (obsoleted by `itertools.combination()`.
992 * docutils/utils/smartquotes.py
994 - Fix bug #332: use open quote after whitespace, ZWSP, and ZWNJ.
996 * docutils/writers/html5_polyglot/
998 - automatically add HTML5-compatible meta tags for docinfo items
999 "authors", "date", and "copyright".
1001 * docutils/writers/_html_base.py
1003 - Fix bug #358: Non-breaking space removed from fixed-width literal.
1005 * docutils/writers/latex2e/__init__.py
1007 - Fix bug #323: spurious ``\phantomsection`` and whitespace in
1009 - Fix bug #324: Invalid LaTeX for table with empty multi-column cell.
1010 - Fixes to literal block handling.
1013 Release 0.14 (2017-08-03)
1014 =========================
1016 * docs/ref/docutils.dtd
1018 - Enable validation of Docutils XML documents against the DTD:
1020 Use attribute type NMTOKEN instead of REFID for the `refid` attribute
1021 and NMTOKENS for `backrefs`: REFID refers to an ID type instance,
1022 however, the `ids` attribute cannot use the ID type because `XML only
1023 allows one ID per Element Type`__ and doesn't support a multiple-ID
1024 "IDS" attribute type.
1026 __ https://www.w3.org/TR/REC-xml/#sec-attribute-types
1028 * docs/ref/rst/restructuredtext.txt
1030 - Added documentation for escaped whitespace in URI contexts.
1031 - Clarify use of Unicode character categories.
1033 * docutils/parsers/rst/states.py
1035 - Added functionality: escaped whitespace in URI contexts.
1036 - Consistent handling of all whitespace characters in inline markup
1037 recognition. Fixes [ 307 ] and [ 3402314 ] (now [ 173 ]).
1039 * docutils/parsers/rst/directives/images.py
1041 - Added support for escaped whitespace in URI contexts.
1043 * docutils/parsers/rst/directives/tables.py
1045 - Rework patch [ 120 ] (revert change to Table.get_column_widths()
1046 that led to problems in an application with a custom table directive).
1048 * docutils/transforms/frontmatter.py
1050 - Fix [ 320 ] Russian docinfo fields not recognized.
1052 * docutils/transforms/references.py
1054 - Don't add a second ID to problematic references.
1056 * docutils/transforms/universal.py
1058 Fix `SmartQuotes`: warn only once if language is unsupported,
1059 keep "rawsource" when "educating" quotes.
1061 * docutils/utils/__init__.py
1063 - Added `split_escaped_whitespac()` function, support for escaped
1064 whitespace in URI contexts.
1066 * docutils/utils/error_reporting.py
1068 - Fix [ 321 ] Import block might cause name error.
1070 * docutils/utils/smartquotes.py
1072 - Update quote definitions for languages et, fi, fr, ro, sv, tr, uk.
1073 - New quote definitions for hr, hsb, hu, lv, sh, sl, sr.
1074 - Fix [ 313 ] Differentiate apostrophe from closing single quote
1076 - Fix [ 317 ] Extra space inserted with French smartquotes.
1077 - Add command line interface for stand-alone use (requires 2.7).
1079 * docutils/writers/_html_base.py
1081 - Provide default title in metadata (required by HTML5).
1082 - Fix [ 312 ] HTML writer generates invalid HTML if the table has two tags.
1083 - Fix [ 319 ] The MathJax CDN shut down on April 30, 2017. For security
1084 reasons, we don't use a third party public installation as default but
1085 warn if `math_output`_ is set to MathJax without specifying a URL.
1087 * docutils/writers/html4css1/__init__.py
1089 - Apply [ 125 ] HTML writer: respect automatic table column sizing.
1091 * docutils/writers/latex2e/__init__.py
1093 - Handle class arguments for block-level elements by wrapping them
1094 in a "DUclass" environment. This replaces the special handling for
1095 `epigraph` and `topic` elements.
1097 * docutils/writers/manpage.py
1099 - Apply [ 141 ] Handling inline in manpage writer.
1101 * docutils/writers/odf_odt/__init__.py
1103 - Command line setting `language`_ now sets the default language
1104 of the generated ODF document.
1105 - The use of image directive options :width: (%), :scale:, etc now
1106 set the width/height/size of images in the generated ODF
1108 - The heading/title of admonitions now reflects the language
1109 specified by the `language`_ setting.
1110 - Fixed [ 306 ] only first of multiple "image" directives with the same URL
1112 - Fixed [ 282 ] python3: `AttributeError`.
1114 * tools/rst2html4.py: New front-end.
1116 * tools/dev/generate_punctuation_chars.py: New script
1117 to test and update utils.punctuation_chars.
1120 Release 0.13.1 (2016-12-09)
1121 ===========================
1123 * docutils/languages/fa.py
1124 docutils/parsers/rst/languages/fa.py
1125 docutils/languages/la.py
1126 docutils/parsers/rst/languages/la.py:
1128 - Apply [ 133 ] Persian mappings by Shahin Azad.
1129 - Apply [ 135 ] Language modules for Latvian by Alexander Smishlajev
1133 - Fix [ 253 ] Attribute key without value not allowed in XML.
1137 - Apply [ 103 ] Recognize inline markups without word boundaries.
1138 - Enable escaping in embedded URIs and aliases (fixes [ 284 ]).
1140 * docutils/parsers/rst/__init__.py
1142 - Fix [ 233 ] Change the base URL for the :rfc: role.
1144 * docutils/parsers/rst/directives/tables.py
1146 - Apply [ 120 ] tables accept option widths: list of relative widths, 'auto'
1149 - Implement feature request [ 48 ]
1150 Add :align: option to the table directives.
1151 Thanks to Takeshi KOMIYA for the patch.
1153 * docutils/parsers/rst/roles.py
1155 - Fix [ 295 ] Class argument for custom role inheriting from math.
1157 * docutils/parsers/rst/tableparser.py
1159 - Really fix [ 159 ] Spurious table column alignment errors.
1161 * docutils/transforms/frontmatter.py
1163 - Add name of generic bibliographic fields as a "classes" attribute value
1164 (after conversion to a valid identifier form).
1166 * docutils/utils/error_reporting.py
1168 - Fix [ 130 ] support streams expecting byte-strings in ErrorOutput.
1170 * docutils/utils/math/math2html.py
1172 - Add ``\colon`` macro, fix spacing around colons. Fixes [ 246 ].
1173 - New upstream version (additional macros, piece-wise integrals and sums).
1175 * docutils/writers/_html_base.py
1177 - New auxiliary module for definitions common to all HTML writers.
1179 * docutils/writers/html5_polyglot/
1181 - New HTML writer generating clean, polyglot_ markup conforming to
1184 The CSS stylesheets ``minimal.css`` and ``plain.css`` contain required
1185 and recommended layout rules.
1187 * docutils/writers/html4css1/__init__.py
1189 - Add "docutils" to class values for "container" object to address [ 267 ].
1190 - Apply patch [ 119 ] by Anatoly Techtonik: use absolute paths for
1191 `default_stylesheet_path` and `default_template_path`.
1192 - Fix [ 266 ] creating labels/class values in description list items.
1193 - Do not use <sup> and <sub> tags inside <pre> (parsed-literal blocks).
1194 - Fix footnotes with content that does not start with a paragraph.
1195 - Use https in default MathJax URL (report Alan G Isaac).
1196 - Outsourcing of common code to _html_base.py.
1198 * docutils/writers/latex2e/__init__.py
1200 - Fix [ 262 ] Use ``\linewidth`` instead of ``\textwidth`` for figures,
1201 admonitions and docinfo.
1203 - Use absolute path for `default_template_path`.
1205 - Removed deprecated options ``--use-latex-footnotes`` and
1206 ``--figure-footnotes``.
1208 - Cleaner LaTeX code for enumerations and literal blocks.
1210 - Use `hyperref` package together with `bookmark` (improved hyperlinking
1211 by the same author).
1213 - Fix [ 286 ] Empty column title cause invalid latex file.
1215 - Fix [ 224 ] Fix rowspan support for tables.
1217 - Let LaTeX determine the column widths in tables with "colwidths-auto".
1218 Not suited for multi-paragraph cells!
1220 * docutils/writers/odf_odt/__init__.py
1222 - remove decode.encode of filename stored in zip.
1224 * docutils/writers/xetex/__init__.py
1226 - LuaLaTex compatibility: do not load `xunicode` package.
1230 - New front-end ``rst2html5.py``.
1234 - Test py26, py27, py33 and py34.
1236 To use, install the `tox` package via pip or easy_install and use
1237 tox from the project root directory.
1239 .. _polyglot: https://www.w3.org/TR/html-polyglot/
1240 .. _HTML 5: https://www.w3.org/TR/html5/
1241 .. _XHTML 1.0: https://www.w3.org/TR/xhtml1/
1244 Release 0.12 (2014-07-06)
1245 =========================
1247 * docs/ref/rst/directives.txt
1249 - Update "math" and "csv-table" descriptions.
1251 * docutils/parsers/rst/directives/images.py
1253 - Fix [ 258 ] ``figwidth="image"`` generates unitless width value.
1255 * docutils/parsers/rst/states.py
1257 - Improve error report when a non-ASCII character is specified as
1258 delimiter, quote or escape character under Python 2.
1259 Fixes [ 249 ] and [ 250 ].
1261 * docutils/writers/html4css1/__init__.py
1263 - Don't add newline after inline math.
1264 Thanks to Yury G. Kudryashov for the patch.
1266 * docutils/writers/latex2e/__init__.py
1268 - Fix [ 239 ] Latex writer glues paragraphs with figure floats.
1269 - Apply [ 116 ] by Kirill Smelkov. Don't hard code \large for subtitle.
1271 * docutils/writers/odf_odt/__init__.py
1273 - Apply patch by Jakub Wilk to fix bug [ 100 ].
1275 * test/test_error_reporting.py
1277 - Fix [ 223 ] by removing redundant tests we do not have control over.
1279 * test/test_nodes.py
1281 - Apply [ 115 ] respect fixed 2to3 string literal conversion behaviour.
1284 Release 0.11 (2013-07-22)
1285 =========================
1289 - Apply [ 2714873 ] Fix for the overwriting of document attributes.
1290 - Support embedded aliases within hyperlink references.
1291 - Fix [ 228 ] try local import of docutils components (reader, writer, parser,
1292 language module) before global search.
1296 - Fix [ 3601607 ] `node.__repr__()` must return `str` instance.
1298 * docutils/parsers/rst/directives/__init__.py
1300 - Fix [ 3606028 ] `assert` is skipped with ``python -O``.
1302 * docutils/parsers/rst/directives/images.py
1304 - Apply [ 3599485 ] node source/line information for sphinx translation.
1306 * docutils/parsers/rst/directives/tables.py
1308 - Fix [ 210 ] Python 3.3 checks CVS syntax only if "strict" is True.
1310 * docutils/parsers/rst/states.py
1312 - Fix [ 157 ] Line block parsing doesn't like system message.
1313 - Always import our local copy of roman.py (report Larry Hastings).
1315 * docutils/transforms/references.py
1317 - Fix [ 3607029 ] traceback with embedded alias pointing to missing target.
1319 * docutils/utils/__init__.py
1321 - Fix [ 3596884 ] exception importing `docutils.io`.
1323 * docutils/writers/html4css1/__init__.py
1325 - Fix [ 3600051 ] for tables in a list, table cells are not compacted.
1326 - New setting `stylesheet_dirs`_: Comma-separated list of directories
1327 where stylesheets are found. Used by `stylesheet_path` when expanding
1328 relative path arguments.
1329 - New default for `math_output`_: ``HTML math.css``.
1330 - Avoid repeated class declarations in html4css1 writer
1331 (modified version of patch [ 104 ]).
1334 * docutils/writers/latex2e/__init__.py
1336 - Drop the simple algorithm replacing straight double quotes with
1337 English typographic ones.
1338 Use the `smart_quotes`_ setting to activate this feature.
1339 - Fix literal use of babel shorthands (straight quote, tilde, ...).
1340 - Fix [ 3603246 ] Bug in option ``--graphicx-option=auto``.
1341 - New setting `stylesheet_dirs`__.
1343 __ docs/user/config.html#stylesheet-dirs-latex-writers
1346 * docutils/writers/manpage.py
1348 - Fix [3607063] handle lines starting with a period.
1349 - Fix option separating comma was bold (thanks to Bill Morris).
1352 Release 0.10 (2012-12-16)
1353 =========================
1357 - Dropped support for Python 2.3.
1358 - ``docutils/math``, ``docutils/error_reporting.py``, and
1359 ``docutils/urischemes.py`` moved to the utils package.
1360 - Fix [3541369] Relative __import__ also with Python 3.3.
1361 - Fix [3559988] and [3560841] __import__ local writer, reader, languages
1362 and parsers for Python 2.7 up.
1363 - Fix import of PIL.Image.
1364 - Change default of `syntax_highlight`_ option to "long",
1365 basic syntax highlight styles for LaTeX and HTML.
1369 - FileInput/FileOutput: no system-exit on IOError. The `handle_io_errors`
1370 option is ignored and will be removed in a future release.
1371 - Fix Py3k error writing to stdout with encoding differing from default.
1372 - Fix opening binary files under Py3k (thanks to Dominic Fitzpatrick).
1374 * docutils/parsers/rst/directives/misc.py
1376 - Fix [ 3546533 ] Unicode error with "date" directive.
1378 * docutils/transforms/universal.py
1380 - SmartQuotes transform for typographic quotes and dashes.
1382 * docutils/utils/__init__.py
1384 - `normalize_language_tag()` now returns `BCP 47`_ conforming tags
1385 with sub-tags separated by ``-``.
1387 * docutils/writers/html4css1/__init__.py
1389 - Use ``<code>`` tag for inline "code",
1390 do not drop nested inline nodes (syntax highlight tokens).
1391 - Customizable MathJax URL (based on patch by Dmitry Shachnev).
1392 - No line break after opening inline math tag.
1394 * docutils/writers/manpage.py
1396 - Apply [ 3527401 ] admonition's don't preserve indentation
1397 - Apply [ 3527397 ] Add indentation to literal blocks in manpage writer.
1399 * docutils/writers/xetex/__init__.py
1401 - Apply [ 3555160 ] ensure order of "otherlanguages".
1402 - Fix section numbering by LaTeX.
1404 * docutils/writers/s5_html/__init__.py
1406 - Fix [ 3556388 ] MathJax does not work with rst2s5.
1408 * docutils/writers/docutils_xml.py
1410 - Fix [ 3552403 ] Prevent broken PyXML replacing stdlibs xml module.
1411 - Fix/improve output with `indents`_ setting.
1415 - Tag ``math.css`` stylesheet as data file (patch by Dmitry Shachnev).
1417 * tools/test/test_buildhtml.py
1419 - Fix [ 3521167 ] allow running in any directory.
1420 - Fix [ 3521168 ] allow running with Python 3.
1423 Release 0.9.1 (2012-06-17)
1424 ==========================
1428 - Fix [ 3527842 ]. Under Python 3, converted tests and tools were
1429 installed in the PYTHONPATH. Converted tests are now
1430 stored in ``test3/``, tools no longer need conversion.
1432 If you installed one of Docutils versions 0.7 ... 0.9 with
1433 ``setup.py install`` under Python 3, remove the spurious
1434 ``test/`` and ``tools/`` directories in the site library root.
1438 - Make tests independent from the location of the ``test/`` directory.
1439 - Use converted sources (from the ``build/`` directory) for tests under
1444 - Make tools compatible with both, Python 2 and 3 without 2to3-conversion.
1448 - Fix writing binary data to sys.stdout under Python 3 (allows
1449 ``rst2odt.py`` to be used with output redirection).
1451 * docutils/parsers/rst/directives/misc.py
1453 - Fix [ 3525847 ]. Catch and report UnicodeEncodeError with
1454 ``locale == C`` and 8-bit char in path argument of `include` directive.
1458 - class `Tee`: catch `UnicodeError` when writing to "ascii" stream or
1459 file under Python 3.
1462 Release 0.9 (2012-05-02)
1463 ========================
1467 - New reStructuredText "code" role and directive and "code" option
1468 of the "include" directive with syntax highlighting by Pygments_.
1469 - Fix parse_option_marker for option arguments containing ``=``.
1470 - Fix [ 2993756 ]: import Python Imaging Library's Image module
1471 via ``import PIL`` as starting with PIL 1.2,
1472 "PIL lives in the PIL namespace only" (announcement__).
1474 .. _Pygments: https://pygments.org/
1475 __ https://mail.python.org/pipermail/image-sig/2011-January/006650.html
1479 - Fix [ 2971827 ] and [ 3442827 ]
1480 extras/roman.py moved to docutils/utils/roman.py
1482 * docutils/frontend.py
1484 - Fix [ 3481980 ] Use `os.getcwdu()` in `make_paths_absolute()`.
1488 - Fix [ 3395948 ] (Work around encoding problems in Py3k).
1489 - `mode` argument for FileOutput avoids code replication in
1491 - New exceptions `InputError` and `OutputError` for IO errors in
1492 FileInput/FileOutput.
1496 - No "hard" system exit on file IO errors: catch and report them in
1497 `Publisher.reportException` instead. Allows handling by a calling
1498 application if the configuration setting `traceback`_ is True.
1500 * docutils/utils.py -> docutils/utils/__init__.py
1502 - docutils.utils is now a package (providing a place for sub-modules)
1504 - DependencyList uses io.FileOutput and 'utf-8' encoding to prevent
1505 errors recording non-ASCII filenames (fixes [ 3434355 ]).
1507 - Fix `relative_path()` with source=None and `unicode` target.
1509 * docutils/parsers/rst/states.py
1511 - Fix [ 3402314 ] allow non-ASCII whitespace, punctuation
1512 characters and "international" quotes around inline markup.
1513 - Use `field_marker` pattern to look for start of a
1514 directive option block (fixes [ 3484857 ]).
1516 * docutils/parsers/rst/tableparser.py
1518 - Fix [ 2926161 ] for simple tables.
1519 (Combining chars in grid tables still contribute to cell width.)
1521 * docutils/writers/latex2e/__init__.py
1523 - Support the `abbreviation` and `acronym` standard roles.
1524 - Record only files required to generate the LaTeX source as dependencies.
1525 - Fix handling of missing stylesheets.
1526 - Use ``\setcounter{secnumdepth}{0}`` instead of ``*``-versions
1527 when suppressing LaTeX section numbering.
1528 - Use ``\DUtitle`` for unsupported section levels.
1529 - Apply [ 3512791 ] do not compare string literals with "is".
1531 * docutils/writers/xetex/__init__.py
1533 - Avoid code duplication with latex2e writer (solves [ 3512728 ]).
1535 * docutils/writers/html4css1/__init__.py
1537 - Change default for `math_output`_ setting to MathJax.
1538 - Fix handling of missing stylesheets.
1540 * docutils/writers/docutils_xml.py
1542 - Use the visitor pattern with `default_visit()`/`default_depart()` methods
1543 instead of minidom to facilitate special handling of selected nodes.
1544 - Support raw XML (inserted as-is inside a <raw></raw> node).
1546 * docutils/writers/manpage.py
1548 - Do not emit comment line with trailing blank. Problematic for VCS.
1551 Release 0.8.1 (2011-08-30)
1552 ==========================
1556 - Fix [ 3364658 ] (Change last file with Apache license to BSD-2-Clause)
1557 and [ 3395920 ] (correct copyright info for rst.el).
1561 - Apply [ 3303733 ] and [ 3365041 ] to fix tests under Py3k.
1563 * docutils/writers/latex2e/__init__.py
1565 - Clean up Babel language setting. Restores Sphinx compatibility.
1568 Release 0.8 (2011-07-07)
1569 ========================
1573 - Handle language codes according to `BCP 47`_.
1574 - If the specified language is not supported by Docutils,
1575 warn and fall back to English.
1576 - Math support: reStructuredText "math" role and directive,
1577 `math` and `math_block` doctree elements.
1578 - Decode command line arguments with the locale's preferred encoding
1579 (to allow, e.g., ``--title=Dornröschen``).
1580 - Orphaned `python` reader and `newlatex2e` writer moved to the sandbox.
1581 - New sub-module `error_reporting`: handle encoding/decoding errors
1582 when reporting exceptions.
1583 - Some additions to the Docutils core are released under the 2-Clause BSD
1584 license, see COPYING_ for details.
1586 .. _BCP 47: https://www.rfc-editor.org/rfc/bcp/bcp47.txt
1587 .. _COPYING: COPYING.html
1591 - Most directives now support a "name" option that attaches a
1594 - Directive content may start on the first line also when the directive
1595 type accepts options.
1597 * docs/dev/policies.txt
1599 - Recommend the 2-Clause BSD license
1600 (http://opensource.org/licenses/BSD-2-Clause)
1601 for code that is kept under the author's copyright.
1603 * tools/buildhtml.py
1605 - Fix ``--local`` switch.
1607 * Fix [ 3018371 ] Added Lithuanian mappings by Dalius Dobravolskas.
1609 * docutils/writers/html4css1/__init__.py
1611 - Set "lang" argument for objects with class argument
1612 "language-<language tag>".
1613 - New setting `math_output`_ with support for HTML, MathML, and LaTeX.
1615 * docutils/writers/latex2e/__init__.py
1617 - Fix [ 3043986 ] `AttributeError` using :local: with table of content.
1618 - Place title data in the document preamble.
1619 - Load `babel` package only if required.
1620 - Update list of supported languages.
1621 - New config setting `hyperref_options`_.
1622 No hard-coded "unicode" hyperref option (clash with xetex).
1623 - Set language for custom roles, paragraphs, block-quotes, and
1624 line-quotes with class argument "language-<language tag>".
1625 - Fix [ 3095603 ] wrong quotes output for Russian and other languages.
1626 - Convert image URI to a local file path.
1627 - Apply [ 3148141 ] fix multicolumn support when a colspanning cell
1628 has more than one paragraph (Wolfgang Scherer).
1629 - \leavevmode before longtable only when needed (prevents spurious vspace)
1630 - do not advance table counter for tables without caption
1632 * docutils/writers/xetex/__init__.py
1634 - New writer generating LaTeX code for compiling with ``xelatex``.
1636 A separate writer (inheriting from latex2e) instead of a ``--xetex``
1637 option allows separate config options for XeTeX vs. LaTeX2e.
1639 * docutils/writers/manpage.py
1641 - Fix: BUG#3219183 - vertical space in definition lists containing markup.
1642 - Fix: vertical space cleaning for option group ``.``.
1644 * tools/editors/emacs/rst.el
1646 - Fix [ 3001100 ] does not handle spaces in filenames.
1647 Thanks to Jakub Wilk.
1651 - strip whitespace from stylesheet arguments
1652 - exclude combining chars from column_width()
1653 (partial fix for [ 2926161 ])
1655 * docutils/parsers/rst/directives/misc.py
1657 - Fix [ 1830389 ] Replace not breaking on getting system_messages from
1662 - Do not ``close()`` `sys.stdin`, `sys.stdout`, or `sys.stderr`. Prevents
1663 ``Exception ValueError: 'I/O operation on closed file.'`` with Python 3.
1666 Release 0.7 (2010-07-07)
1667 ========================
1671 - Fix [ 2881769 ] setup configuration.
1672 - Fix [ 2788716 ] reporting problems in included files.
1676 - FileInput opens files as text files with universal newline support
1677 (mode "rU", configurable with the new optional argument "mode").
1681 - Fix [ 2975987 ] repr(Text) failed with long string (Jeffrey C. Jacobs).
1685 - Fix [ 2923723 ] let `decode_path()` tolerate ``path == None``.
1687 * docutils/writers/html4css1/__init__.py
1689 - Support SVG and SWF images (thanks to Stefan Rank).
1690 - Generate valid XHTML for centred images with targets.
1691 Use CSS classes instead of "align" tags for image alignment.
1693 * docutils/writers/latex2e/__init__.py
1695 - Use `transforms.writer_aux.Admonitions` to "normalize" special
1697 - Use the ``\url`` command for URLs (breaks long URLs instead of
1698 writing into the margin).
1699 - Preserve runs of spaces in `inline literals`__.
1700 - Deprecate `figure_footnotes`_ setting.
1701 - Rename `use_latex_footnotes`_ setting to `docutils_footnotes`_.
1702 - New `latex_preamble`_ setting.
1703 - Use PDF standard fonts (Times/Helvetica/Courier) as default.
1704 - Fix hyperlink targets (labels) for images, figures, and tables.
1705 - Apply [ 2961988 ] Load babel after inputenc and fontenc.
1706 - Apply [ 2961991 ] Call hyperref with unicode option.
1707 - Drop the special `output_encoding`_ default ("latin-1").
1708 The Docutils wide default (usually "UTF-8") is used instead.
1709 - Render inline markup in document title and subtitle.
1710 - Fix numbering depth with LaTeX section numbering.
1711 - Update Unicode -> LaTeX translations.
1712 - Fix bug with topic directive (thanks to Alan G Isaac for reporting).
1714 __ docs/ref/restructuredtext.html#inline-literals
1716 * docutils/writers/manpage.py
1718 - Fix: supported attribute (thanks to peter2108).
1719 - Remove trailing blanks in code (keep in sync with mercurial version).
1720 - Titles level 1, that is ``.SH``, always uppercase.
1721 - Apply patch from mg: literal text should be bold in man-pages.
1725 - Fix: encoding ``'ascii'`` must be lowercase to prevent problems for
1730 - Python 3 support: copy test/ and tools/ to the build-dir
1731 and convert Python sources with 2to3.
1734 Release 0.6 (2009-10-11)
1735 ========================
1739 - Docutils is now compatible with Python versions from 2.3 up to 2.6
1740 and convertible to 3.1 code.
1742 + Node.__nonzero__ returns True instead of 1.
1743 + use os.walk instead os.path.walk.
1744 + minimize `types` module where possible.
1745 + Backwards-compatible changes to remove python2.6 -3 deprecation warnings
1746 + Text nodes now subclass unicode rather than UserString
1747 (which is gone in python 3.0).
1748 + 3.0 compatibility module docutils._compat
1750 + Drop 2.2 compatibility workarounds.
1751 + Drop extras/optparse.py and extras/textwrap.py
1752 (stdlib modules since 2.3).
1754 - OpenOffice export: ODT writer moved from sandbox to Docutils core.
1755 - Unix man page export: manpage writer moved from sandbox to Docutils
1758 - Apply [ 1719345 ] Galician translation
1759 - Apply [ 1905741 ] Polish translation
1760 - Apply [ 1878977 ] make_id(): deaccent characters.
1761 - Apply [ 2029251 ] return nonzero when tests fail.
1762 - Fix [ 1692788 ] allow UTF-8 in style sheets.
1763 - Fix [ 2781629 ] support non-ASCII chars in file names.
1764 - Apply [ 2845002 ] let ``--no-raw`` disable raw *roles* too.
1765 - Fix [ 2831643 ] renaming `DirectiveError.message` to `DirectiveError.msg`
1766 - Fix [ 2821266 ] ``--strict`` option works now like ``--halt=info``.
1767 - Fix [ 2788716 ] `DirectiveError` now correctly reports source and line.
1768 - Fix [ 1627229 ] hyperlink references in substitutions.
1770 - The `newlatex` writer is orphaned.
1774 - Documented Unicode characters allowed as inline markup openers,
1775 closers, and delimiters.
1776 - Allow units for all length specifications.
1777 - Allow percent sign in "scale" argument of "figure" and "image" directives.
1778 - Bugfix: The "figalign" argument of a figure now works as intended
1779 (aligning the figure, not its contents).
1780 - Align images with class "align-[right|center|left]"
1781 (allows setting the alignment of an image in a figure).
1783 * docutils/nodes.py:
1785 - Added `Element.__contains_()` method, for the in-operator.
1787 * docutils/parsers/rst/states.py:
1789 - Apply [ 1994493 ] Patch to support all kinds of quotes in inline markup.
1790 - Added support for Unicode inline markup delimiters "‐ ‑ ‒ – —" and
1791 " " (non-breaking space), and "¡ ¿" openers.
1793 * docutils/parsers/directives/misc.py:
1795 - Added ``start-line`` and ``end-line`` options to "include"
1796 directive to select a range of lines.
1797 - Hard tabs in literal inclusions are replaced by spaces. This is
1798 configurable via the new ``tab-width`` option of the "include" directive
1799 (a negative tab-width prevents tab expansion).
1801 * docutils/utils.py:
1803 - Add `get_stylesheet_lis()` function.
1804 - Apply [ 2834836 ] print info at halt
1806 * docutils/transforms/universal.py:
1808 - Raise default priority of StripClasses to exclude stripped classes from
1811 * docutils/writers/html4css1/__init__.py:
1813 - `stylesheet`_ and `stylesheet_path`_ settings support a comma
1814 separated list of stylesheets.
1815 - Address [ 1938891 ] Inline literal text creates "pre" span only when
1816 needed to prevent inter-word line wraps.
1817 - Use `translate()` method instead of repeated `replace()` calls.
1818 - Fix [ 1757105 ] New `table_style`_ setting. Added to standard table
1819 classes to allow CSS styling that does not interfere with other
1820 table-using constructs (field lists, citations, ...).
1822 * docutils/writers/newlatex2e/__init__.py:
1824 - Apply [ 1612821 ] Double quotes in literal text in Italian/German
1826 * docutils/writers/latex2e/__init__.py:
1828 - Add `embed_stylesheet`_ setting.
1829 - Apply [ 1474017 ] image vertical alignment is reversed.
1830 - Apply [ 2051599 ] multi-page tables in latex writer (from pabigot).
1831 - Change: has_key for dictionaries (not Nodes) to in-operator.
1832 - Merge adjacent citations into one latex cite command.
1833 - Failsafe implementation of custom roles. LaTeX compilation now ignores
1834 unknown classes instead of aborting with an error.
1835 - Support custom roles based on standard roles.
1836 - LaTeX packages can be used as `stylesheet`_ arguments without
1837 restriction. (A style sheet is now referenced with the ``\usepackage``
1838 command, if it ends with ``.sty`` or has no extension.)
1839 - Add ``bp`` to lengths without unit (prevents LaTeX errors).
1840 - Correctly write length unit ``pt`` as ``bp`` in LaTeX.
1841 - Do not convert ``px`` to ``pt`` (``px`` is supported by pdfTeX since
1842 2005-02-04 as a configurable length unit).
1843 - Do not use fontenc, nor the obsolete 'ae' and 'aeguill' packages
1844 if font-encoding is set to ''. LaTeX defaults to OT1 then.
1845 - Set sub- and superscript role argument in text mode not as math.
1846 Use a custom role based on sub-/superscript if you want italic shape.
1847 - Shorter preamble and less dependencies: Load packages and define macros
1848 only if required in the document.
1849 - Use the name prefix ``DU`` for all Docutils specific LaTeX macros.
1850 - New custom environments and commands with optional "classes" argument.
1851 - Simpler LaTeX encoding, e.g. "\%" instead of "{\%}".
1852 - Better conformance to Docutils specifications with `use_latex_toc`_.
1853 Support for LaTeX generated ToC also with unnumbered sections.
1854 - If 'sectnum_xform' is False, the 'sectnum' directive triggers
1855 section numbering by LaTeX.
1856 - Use default font in admonitions and sidebar.
1857 - Align of image in a figure defaults to 'center'.
1858 - Bugfix: Newlines around targets and references prevent run-together
1860 - Fix internal hyperlinks.
1861 - Use class defaults for page margins ('typearea' now optional).
1862 - Float placement made configurable, default changed to "here definitely".
1863 - Typeset generic topic as "quote block with title".
1864 - Use template (file and configuration option).
1865 - In the default template, load cmap.sty (fix text extraction in PDF) and
1866 fixltx2e.sty (LaTeX patches, \textsubscript).
1867 - Render doctest blocks as literal blocks (fixes [ 1586058 ]).
1868 - Use `translate()` instead of repeated `replace()` calls for text encoding.
1869 - Hyperlinked footnotes and support for symbol footnotes and
1870 ``--footnote-references=brackets`` with ``--use-latex-footnotes``.
1871 - Complete pairs of binary options
1872 (``--figure-footnotes, --figure-citations, --link-stylesheet``,
1873 ``--use-docutils-toc, --use-docutils-docinfo, --topic-abstract``)
1875 - font-encoding: "T1" (formerly implicitly set by 'ae').
1876 - use-latex-toc: true (ToC with page numbers).
1877 - use-latex-footnotes: true (no mixup with figures).
1879 * docutils/writers/manpage.py
1881 - Do not print version at document end, this is done by the viewer.
1882 - Do not print date at document end, this is done by the viewer.
1883 - Fix storage of docinfo fields for none standard fields.
1885 * docutils/tools/rst2man.py
1888 Release 0.5 (2008-06-25)
1889 ========================
1891 * docutils/languages/he.py: Added to project: Hebrew mappings by
1894 * docutils/parsers/rst/languages/he.py: Added to project: Hebrew
1895 mappings by Meir Kriheli.
1897 * docutils/frontend.py:
1899 - Configuration files are now assumed and required to be
1901 - Paths of applied configuration files are now recorded in the
1902 runtime setting `_config_files`_ (accessible via `dump_settings`_).
1903 - Added `strip_elements_with_classes`_ and `strip_classes`_ settings.
1907 - Added code to determine the input encoding from data: encoding
1908 declarations or the presence of byte order marks (UTF-8 & UTF-16).
1909 - Added support for IronPython 1.0.
1911 * docutils/nodes.py:
1913 - Added `document.__getstate_()` method, for pickling.
1915 * docutils/parsers/rst/states.py:
1917 - Allow ``+`` and ``:`` in reference names.
1918 - Unquoted targets beginning with an underscore (``.. __target:
1919 URI``) are no longer accepted.
1920 - Added support for multiple attributions in a physical block quote
1921 (indented text block), dividing it into multiple logical block
1923 - Added support for unicode bullets in bullet lists: "•", "‣", and
1925 - Added support for new object-oriented directive interface,
1926 retaining compatibility to the old functional interface.
1927 - Added support for throwing `DirectiveError`'s from within
1930 * docutils/parsers/rst/__init__.py:
1932 - Added `Directive` base class.
1933 - Added `DirectiveError` base class.
1934 - Fixed `file_insertion_enabled`_ & `raw_enabled`_ setting
1937 * docutils/parsers/directives/:
1939 - Refactored all reStructuredText directives to use the new
1940 object-oriented directive interface. Errors are now (mostly)
1941 thrown using the new `DirectiveError` class.
1943 * docutils/parsers/directives/misc.py:
1945 - Added ``start-after`` and ``end-before`` options to ``include``
1946 directive; thanks to Stefan Rank.
1948 * docutils/transforms/universal.py:
1950 - Added `StripClassesAndElements` transform to remove from the
1951 document tree all elements with classes in
1952 `strip_elements_with_classes`_ and all "classes"
1953 attribute values in `strip_classes`_
1955 * docutils/transforms/writer_aux.py:
1957 - Added `Admonitions` transform to transform specific admonitions
1958 (like "note", "warning", etc.) into generic admonitions with a
1961 * docutils/writers/html4css1/__init__.py:
1963 - Moved template functionality from the PEP/HTML writer here.
1964 - Expanded the fragments available in the ``parts`` attribute.
1965 - Moved ``id`` attributes from titles to surrounding ``div``
1967 - Dropped all ``name`` attributes of ``a`` elements (``id`` is
1968 universally supported now).
1969 - ``template.txt`` is now opened in text mode instead of binary mode
1970 (to ensure Windows compatibility).
1971 - ``a`` elements now have an "internal" or "external" class,
1972 depending on reference type.
1974 * docutils/writers/html4css1/template.txt: Added to project.
1976 * docutils/writers/pep_html/:
1978 - Moved template functionality to the HTML writer.
1980 * docutils/writers/s5_html/__init__.py:
1982 - Added `view_mode`_ & `hidden_controls`_ settings.
1984 * docutils/writers/latex2e/__init__.py:
1986 - Add `literal_block_env`_.
1987 - Fix: escaping ``%`` in href urls.
1988 - Move usepackage hyperref after stylesheet inclusion.
1989 - Fix: scrartcl does not have chapter but scrreprt.
1990 - Add newline after ``\end{verbatim}``.
1991 - Merge smaller differences from latex2e_adaptive_preamble.
1992 - Add ``use-part-section``.
1993 - Put leavevmode before longtable to avoid having it moved before sub/pargraph.
1994 - Using leavemode option_list no longer needs to check if parent
1995 is a definition list.
1996 - Append ``\leavemode`` to definition list terms.
1997 - No longer write visit\_/depart_definition_list_item comments to
1999 - Table column width with 3 decimal places.
2000 - Add table stubs support (boldfont).
2001 - Add assemble_parts to writer.
2002 - Add simply support for nested tables.
2003 - Fix verbatim in tables if use-verbatim-when-possible.
2004 - Use section commands down to subparagraph.
2005 - Put ensuremath around some latin1 chars.
2006 - Set ``usepackage[utf8x]{inputenc}`` for utf-8.
2007 - New experimental setting `use_bibtex`_.
2008 - New setting `reference_label`_ to allow usage of LaTeX ref for
2009 labels in section references.
2010 - Add a label after every section to support sectionnumbers as reference
2012 - Fix: bug# 1605376 rst2latex: bad options group list
2013 - Remove inactive code for use_optionlist_for_option_list.
2014 - Remove latex comments from option_list output.
2015 - Fix: bug# 1612270 double quotes in italian literal.
2016 - Fix: output ``hypertarget{ node.get(refid) }{}`` from visit_target.
2017 - Add setting `use_latex_abstract`_.
2018 - Image width unit ``px`` is translated to ``pt``.
2019 - Add image height support.
2020 - Fix: image width ``70%`` is converted ``0.700\linewidth``.
2022 - Fix: Do not escape underscores in citation reference labels if
2023 use-latex-citations is set.
2024 - Use centering instead of center for figure contents, to avoid vertical
2026 - Recognize table class: borderless, nolines, booktabs, standard.
2027 - Fix: Renaming contents section does not work with latex writer; SF
2029 - Applied patch for custom roles with classes from Edward Loper.
2030 - Fixed bug that caused crashes with more than 256 lists.
2032 * docutils/writers/pep_html/__init__.py:
2034 - Changed to support new python.org website structure and
2037 * docs/howto/security.txt: "Deploying Docutils Securely", added to
2040 * tools/buildhtml.py:
2042 - Add `ignore`_ setting to exclude a list of shell patterns
2043 (default: ``.svn:CVS``).
2045 * tools/editors/emacs/rst.el:
2047 - Changed license to "GPL".
2048 - Added ``rst-straighten-decorations`` function.
2049 - The ``compile`` module is now always loaded.
2050 - Added ``rst-toggle-line-block`` function.
2051 - Headings consisting only of non-ASCII characters are now
2052 recognized by ``rst-toc`` and ``rst-adjust``.
2053 - Added font-lock support for multi-line comments where the first
2054 comment line is empty.
2055 - Added ``(require 'font-lock)``.
2059 - Provide descriptive error message if distutils is missing.
2062 Release 0.4 (2006-01-09)
2063 ========================
2067 - Updated the project policies for trunk/branch development &
2070 * docutils/__init__.py:
2072 - Added ``__version_details__`` attribute to describe code source
2073 (repository/snapshot/release).
2074 - Replaced ``default_transforms`` attribute of ``TransformSpec`` with
2075 ``get_transforms()`` method.
2079 - Added ``publish_doctree`` and ``publish_from_doctree`` convenience
2080 functions, for document tree extraction and reprocessing.
2084 - Added ``DocTreeInput`` class, for reprocessing existing documents.
2085 - Added support for non-Unicode (e.g. binary) writer output.
2087 * docutils/nodes.py:
2089 - Re-introduced ``Targetable.indirect_reference_name``, for
2090 MoinMoin/reST compatibility (removed in r3124/r3129).
2091 - Added ``serial_escape`` function; escapes string values that are
2092 elements of a list, for serialization. Modified Docutils-XML
2093 writing (``Element._dom_node``) and pseudo-XML writing
2094 (``Element.starttag``) to use ``serial_escape``.
2095 - Added ``Node.deepcopy()`` method.
2096 - Removed the internal lists ``document.substitution_refs``,
2097 ``document.anonymous_refs``, and ``document.anonymous_targets``.
2098 - Added a "container" element.
2099 - Fixed bug where values of list-valued attributes of elements
2100 originating from custom interpreted text roles (i.e., with custom
2101 classes) were being shared between element instances. Reported by
2104 * docutils/statemachine.py:
2106 - Added trailing whitespace stripping to ``string2lines()``.
2107 - Added ``StringList.pad_double_width()`` & ``.replace()`` for East
2108 Asian double-width character support.
2110 * docutils/utils.py:
2112 - Added ``east_asian_column_width()`` for double-width character
2115 * docutils/languages/ja.py: Added to project: Japanese mappings by
2118 * docutils/languages/zh_cn.py: Added to project: Simplified Chinese
2119 mappings by Panjunyong.
2121 * docutils/parsers/null.py: Added to project; a do-nothing parser.
2123 * docutils/parsers/rst/__init__.py:
2125 - Added validator to "tab_width" setting, with test. Closes SF bug
2126 #1212515, report from Wu Wei.
2128 * docutils/parsers/rst/states.py:
2130 - Fixed bug with escaped colons indicating a literal block.
2131 - Fixed bug with enumerated lists (SF#1254145).
2132 - Backslash-escaped colons inside of field names are now allowed.
2133 - Targets (implicit and explicit), anonymous hyperlink references
2134 and auto-numbered footnote references inside of substitution
2135 definitions are now disallowed.
2136 - Fixed bug: list items with blank first lines.
2137 - Fixed bug: block quote attributions with indented second lines.
2138 - Added East Asian double-width character support (Python 2.4 only).
2140 * docutils/parsers/rst/tableparser.py:
2142 - Added East Asian double-width character support (Python 2.4 only).
2144 * docutils/parsers/rst/directives/body.py:
2146 - Added the "container" directive.
2148 * docutils/parsers/rst/directives/misc.py:
2150 - Added the "default-role", "title", and "date" directives.
2151 - Added standard data file syntax to the "include" directive.
2152 - Added support for "class" directive content.
2154 * docutils/parsers/rst/directives/images.py:
2156 - Added ``indirect_reference_name`` support for images with a target
2158 - Added support for image width and height units.
2159 - Fixed bug with image "target" options.
2161 * docutils/parsers/rst/directives/references.py:
2163 - Added "class" attribute to "target-notes" directive, for
2164 footnote_reference classes.
2166 * docutils/parsers/rst/include/: Directory added to project; contains
2167 standard data files for the "include" directive. Initial contents:
2168 character entity substitution definition sets, and a set of
2169 definitions for S5/HTML presentations.
2171 * docutils/parsers/rst/languages/ja.py: Added to project: Japanese
2172 mappings by David Goodger.
2174 * docutils/parsers/rst/languages/zh_cn.py: Added to project:
2175 Simplified Chinese mappings by Panjunyong.
2177 * docutils/readers/__init__.py:
2179 - Added universal.Decorations and universal.ExposeInternals
2180 transforms as default transforms for all readers.
2181 - Added ``ReReader`` base class for readers that reread an existing
2184 * docutils/readers/doctree.py: Added to project; a reader for existing
2187 * docutils/transforms/frontmatter.py:
2189 - Fixed the DocInfo transform to handle SVN-style expansion of the
2191 - In ``DocInfo.extract_authors``, treat the contents of "authors"
2194 * docutils/transforms/misc.py:
2196 - Added misc.Transitions transform, extracted from
2197 universal.FinalChecks.
2199 * docutils/transforms/references.py:
2201 - Added references.DanglingReferences transform, extracted from
2202 universal.FinalChecks.
2203 - Fixed bug with doubly-indirect substitutions.
2204 - Added footnote_reference classes attribute to "TargetNotes".
2205 - Fixed bug with circular substitution definitions that put Docutils
2206 into an infinite loop.
2208 * docutils/transforms/universal.py:
2210 - Added universal.ExposeInternals transform, extracted from
2211 universal.FinalChecks.
2212 - Removed universal.FinalChecks transform (logic has been moved to
2213 several new transforms).
2214 - Fixed bug with the "expose_internals" setting and Text nodes
2215 (exposed by the "rawsource" internal attribute).
2216 - Added the universal.StripComments transform, implementation of the
2217 "strip_comments" setting.
2219 * docutils/transforms/writer_aux.py: Added to project; auxiliary
2220 transforms for writers.
2222 - Added ``Compound`` transform, which flattens compound paragraphs.
2224 * docutils/writers/: Several writer modules (html4css1.py) were
2225 converted into packages. Support modules and data files have been
2226 moved into the packages. The stylesheets for the HTML writers are
2227 now installed along with the code, the code knows where to find
2228 them, and the default is to use them (actually, to embed them).
2229 Some adjustments to configuration files may be necessary. The
2230 easiest way to obtain the new default behavior is to remove all
2231 settings whose name includes "stylesheet".
2233 * docutils/writers/__init__.py:
2235 - Added universal.Messages and universal.FilterMessages transforms
2236 as default transforms for all writers.
2237 - Added ``UnfilteredWriter`` base class for writers that pass the
2238 document tree on unchanged.
2240 * docutils/writers/docutils_xml.py:
2242 - Made ``xmlcharrefreplace`` the default output encoding error
2245 * docutils/writers/html4css1/:
2247 - Added support for image width and height units.
2248 - Made ``xmlcharrefreplace`` the default output encoding error
2250 - Made ``--embed-stylesheet`` the default rather than
2251 ``--link-stylesheet``.
2252 - Moved "id" attribute from container (section etc.) to title's <a>
2253 tag, to be on the same tag as "name".
2254 (!!! To be reverted in Docutils 0.5.)
2255 - Added vertical space between fields of field lists.
2256 - Added ``--compact-field-lists`` option to remove vertical space in
2258 - Made cloaking of email addresses with ``--cloak-email-addresses``
2260 - Fixed support for centered images.
2261 - Added support for class="compact" & class="open" lists.
2263 * docutils/writers/latex2e/:
2265 - Underscores in citekeys are no longer escaped.
2267 * docutils/writers/newlatex2e/unicode_map.py: Added to project;
2268 mapping of Unicode characters to LaTeX equivalents.
2270 * docutils/writers/s5_html/: Package added to project; writer for
2271 S5/HTML slide shows.
2273 * docs/dev/distributing.txt: Added to project; guide for distributors
2274 (package maintainers).
2276 * docs/dev/hacking.txt: Added to project; guide for developers.
2278 * docs/ref/doctree.txt:
2280 - Updated for plural attributes "classes", "ids", "names",
2282 - Added the "container" element.
2284 * docs/ref/docutils.dtd:
2286 - Updated for plural attributes "classes", "ids", "names",
2289 * docs/user/emacs.txt: Added to project; a document about Emacs
2290 support for reStructuredText and Docutils.
2292 * docs/user/links.txt: Added to project; lists of Docutils-related
2295 * docs/user/mailing-lists.txt: Added to project; information about
2296 Docutils-related mailing lists and how to access them.
2298 * docs/user/slide-shows.txt: Added to project; example of and docs for
2299 the S5/HTML writer (``rst2s5.py`` front end).
2301 * docs/ref/rst/definitions.txt: "reStructuredText Standard Definition
2302 Files", added to project.
2304 * test/coverage.sh: Added to project; test coverage script.
2306 * test/DocutilsTestSupport.py:
2308 - Added support for specifying runtime settings at the suite level.
2310 * test/test_functional.py:
2312 - Added the ``clear_output_directory`` function.
2313 - Added support for ``_test_more`` functions in functional test
2316 * tools/rst2s5.py: Added to project; front end for the S5/HTML writer.
2318 * tools/rstpep2html.py: Renamed from pep.py.
2320 * tools/dev/create_unimap.py: Added to project; script to create the
2321 docutils/writers/unimap_latex.py mapping file.
2323 * tools/dev/profile_docutils.py: Added to project; profiler script.
2325 * tools/dev/unicode2rstsubs.py: Moved from tools/unicode2rstsubs.py.
2327 * tools/editors/emacs/restructuredtext.el,
2328 tools/editors/emacs/rst-html.el, tools/editors/emacs/rst-mode.el:
2329 Removed from project; the functionality is now contained in rst.el.
2331 * tools/editors/emacs/rst.el: Added to project. Added many features
2332 and fixed many bugs. See docs/user/emacs.txt for details.
2334 * tools/stylesheets: Removed from project. Stylesheets have been
2335 renamed and moved into writer packages.
2338 Release 0.3.9 (2005-05-26)
2339 ==========================
2343 - Eliminated and replaced all uses of the old string attributes
2344 ``id``, ``name``, ``dupname`` and ``class`` with references to the
2345 new list attributes ``ids``, ``names``, ``dupnames`` and
2346 ``classes`` throughout the whole source tree.
2350 - Enabled ``--dump-*`` options when ``--traceback`` specified,
2351 allowing for easier debugging.
2352 - In ``Publisher.publish()``, expanded the generic top-level
2355 * docutils/examples.py:
2357 - Added ``internals`` function for exploration.
2361 - Fixed ``Input.decode`` method to apply heuristics only if no
2362 encoding is explicitly given, and to provide better reporting of
2364 - The ``Input.decode`` method now removes byte order marks (BOMs)
2367 * docutils/nodes.py:
2369 - ``image`` element class changed to subclass of Element, not
2370 TextElement (it's an empty element, and cannot contain text).
2371 - Added ``attr_defaults`` dictionary for default attribute values.
2372 - Added empty list as default value for the following attributes:
2373 ``ids``, ``names``, ``dupnames``, ``classes``, and ``backrefs``.
2374 - Added ``document.decoration`` attribute,
2375 ``document.get_decoration`` method, and ``decoration.get_header``
2376 & ``.get_footer`` methods.
2377 - Added ``Element.update_basic_atts()`` and ``Element.substitute()``
2380 * docutils/utils.py:
2382 - Removed ``docutils.utils.Reporter.categories``,
2383 ``docutils.utils.ConditionSet``, and all references to them, to
2384 simplify error reporting.
2386 * docutils/languages/nl.py: Added to project; Dutch mappings by
2389 * docutils/parsers/rst/__init__.py:
2391 - Added settings: ``file_insertion_enabled`` & ``raw_enabled``.
2393 * docutils/parsers/rst/states.py:
2395 - Added check for escaped at-mark to prevent email address recognition.
2396 - Fixed option lists to allow spaces inside ``<angle-bracketed option
2398 - Allowed whitespace in paths and URLs.
2399 - Added auto-enumerated list items.
2400 - Fixed bug that assumed ``.. _`` and ``.. |`` were invariably
2402 - Added support for table stub columns.
2404 * docutils/parsers/rst/directives/__init__.py:
2406 - Allowed whitespace in paths (``path`` function).
2407 - Added ``uri`` directive option conversion function.
2409 * docutils/parsers/rst/directives/body.py:
2411 - Fixed illegal context bug with "topic" directive (allowed within
2412 sidebars; not within body elements).
2414 * docutils/parsers/rst/directives/images.py:
2416 - Allowed whitespace (stripped) in "image" & "figure" directive URLs.
2417 - Added support for the ``file_insertion_enabled`` setting in the
2418 "figure" directive (disables "figwidth" option).
2419 - "image" directive: added checks for valid values of "align" option,
2420 depending on context. "figure" directive: added specialized
2421 "align" option and attribute on "figure" element.
2422 - Made ":figwidth: image" option of "figure" directive work again.
2423 - Fixed bug with reference names containing uppercase letters
2424 (e.g. ``Name_``) in "target" option of "image" directive.
2426 * docutils/parsers/rst/directives/misc.py:
2428 - Fixed "include" and "raw" directives to catch text decoding
2430 - Allowed whitespace in "include" & "raw" directive paths.
2431 - Added support for ``file_insertion_enabled`` & ``raw_enabled``
2432 settings in "include" & "raw" directives.
2434 * docutils/parsers/rst/directives/parts.py:
2436 - Added "header" & "footer" directives.
2437 - Fixed illegal context bug with "contents" directive (topics
2438 allowed within sidebars; not within body elements).
2440 * docutils/parsers/rst/directives/tables.py:
2442 - Added "list-table" directive.
2443 - Caught empty CSV table bug.
2444 - Added support for the ``file_insertion_enabled`` setting in the
2445 "csv-table" directive.
2446 - Added ``stub-columns`` option to "csv-table" and "list-table"
2449 * docutils/parsers/rst/languages/nl.py: Added to project; Dutch
2450 mappings by Martijn Pieters.
2452 * docutils/readers/standalone.py:
2454 - Added ``section_subtitles`` setting to activate or deactivate the
2455 ``SectSubTitle`` transform.
2457 * docutils/transforms/frontmatter.py:
2459 - Added SectSubTitle transform to promote titles of lone
2460 subsections to subtitles.
2462 * docutils/transforms/references.py:
2464 - Fixed mislocated internal targets bug, by propagating internal
2465 targets to the next node, making use of the newly added support
2466 for multiple names and IDs.
2467 - Fixed duplicate footnote label bug.
2468 - Replaced ``ChainedTargets`` with more generic ``PropagateTargets``
2471 * docutils/writers/html4css1.py:
2473 - Fixed unencoded stylesheet reference bug (characters like "&" in
2474 stylesheet references).
2475 - ``target`` nodes now appear as ``span`` tags (instead of ``a``
2477 - Added support for multiple IDs per node by creating empty ``span``
2479 - Added the ``field_name_limit`` & ``option_limit`` settings &
2481 - Added support for table stub columns.
2482 - Added support for the ``align`` attribute on ``figure`` elements.
2483 - Added the ``cloak_email_addresses`` setting & support.
2484 - Added ``html_prolog``, ``html_head``, ``html_body``,
2485 ``html_title``, & ``html_subtitle`` to parts dictionary exposed by
2486 ``docutils.core.publish_parts``.
2487 - Added support for section subtitles.
2489 * docutils/writers/latex2e.py:
2491 - Fixed tables starting with more than one multirow cell.
2492 - Improved ``--use-latex-docinfo`` so that organization/contact/address
2493 fields are lumped with the last author field and appear on the
2495 - Made sure the titlepage is always shown with ``--use-latex-docinfo``,
2496 even if the document has no title.
2497 - Made sure that latex doesn't fill in today's date if no date field
2499 - Added support for section subtitles.
2501 * docutils/writers/newlatex2e.py: Added to project; a new LaTeX writer
2502 (under development).
2504 * docutils/writers/null.py: Added to project; a do-nothing Writer.
2506 * docs/api/publisher.txt:
2508 - Added "``publish_parts`` Details" section.
2510 * docutils/dev/repository.txt: Added to project; information about the
2511 Docutils Subversion repository.
2513 * docs/ref/docutils.dtd:
2515 - Added a ``stub`` attribute to the ``colspec`` element via the
2516 ``tbl.colspec.att`` parameter entity.
2517 - Allowed topic elements within sidebars
2518 - Added an ``align`` attribute to the ``figure`` element.
2520 * tools/rst2newlatex.py: Added to project; front end for the new LaTeX
2524 Release 0.3.7 (2004-12-24)
2525 ==========================
2527 * docutils/frontend.py:
2529 - Added options: ``--input-encoding-error-handler``,
2530 ``--record-dependencies``, ``--leave-footnote-reference-space``,
2531 ``--strict-visitor``.
2532 - Added command-line and config file support for "overrides" setting
2537 - Added support for input encoding error handler.
2539 * docutils/nodes.py:
2541 - Added dispatch_visit and dispatch_departure methods to
2542 NodeVisitor; useful as a hook for Visitors.
2543 - Changed structure of ``line_block``; added ``line``.
2544 - Added ``compound`` node class.
2545 - Added a mechanism for Visitors to transitionally ignore new node
2548 * docutils/utils.py:
2550 - Moved ``escape2null`` and ``unescape`` functions from
2551 docutils/parsers/rst/states.py.
2553 * docutils/parsers/rst/roles.py:
2556 - Changed role function API: the "text" parameter now takes
2557 null-escaped interpreted text content.
2559 * docutils/parsers/rst/states.py:
2561 - Fixed bug where a "role" directive in a nested parse would crash
2562 the parser; the state machine's "language" attribute was not being
2564 - Added support for line block syntax.
2565 - Fixed directive parsing bug: argument-less directives didn't
2566 notice that arguments were present.
2567 - Removed error checking for transitions.
2568 - Added support for multiple classifiers in definition list items.
2569 - Moved ``escape2null`` and ``unescape`` functions to docutils/utils.py.
2570 - Changed role function API: the "text" parameter now takes
2571 null-escaped interpreted text content.
2572 - Empty sections and documents are allowed now.
2574 * docutils/parsers/rst/directives/__init__.py:
2576 - Added ``encoding`` directive option conversion function.
2577 - Allow multiple class names in class_option conversion function.
2579 * docutils/parsers/rst/directives/body.py:
2581 - Converted the line-block directive to use the new structure.
2582 - Extracted the old line-block functionality to the ``block``
2583 function (still used).
2584 - Added ``compound`` directive (thanks to Lea Wiemann).
2586 * docutils/parsers/rst/directives/misc.py:
2588 - Added "encoding" option to "include" and "raw" directives.
2589 - Added "trim", "ltrim", and "rtrim" options to "unicode" directive.
2590 - Allow multiple class names in the "class" directive.
2592 * docutils/parsers/rst/directives/parts.py:
2594 - Directive "sectnum" now accepts "prefix", "suffix", and "start"
2595 options. Thanks to Lele Gaifax.
2597 * docutils/parsers/rst/directives/tables.py:
2599 - Added "encoding" directive to "csv-table" directive.
2600 - Added workaround for lack of Unicode support in csv.py, for
2601 non-ASCII CSV input.
2603 * docutils/transforms/misc.py:
2605 - Fixed bug when multiple "class" directives are applied to a single
2607 - Enabled multiple format names for "raw" directive.
2609 * docutils/transforms/references.py:
2611 - Added support for trimming whitespace from beside substitution
2614 * docutils/transforms/universal.py:
2616 - FinalChecks now checks for illegal transitions and moves
2617 transitions between sections.
2619 * docutils/writers/html4css1.py:
2621 - HTMLTranslator.encode now converts U+00A0 to " ".
2622 - "stylesheet" and "stylesheet_path" settings are now mutually
2624 - Added support for the new line_block/line structure.
2625 - ``--footnote-references`` now overrides
2626 ``--trim-footnote-reference-space``, if applicable.
2627 - Added support for ``compound`` elements.
2628 - Enabled multiple format names for "raw" directive.
2629 - ``<p>`` tags of a paragraph which is the only visible child of the
2630 document node are no longer stripped.
2631 - Moved paragraph-compacting logic (for stripping ``<p>`` tags) to
2632 new method ``should_be_compact_paragraph()``.
2633 - Added class="docutils" to ``dl``, ``hr``, ``table`` and ``tt``
2635 - "raw" elements are now surrounded by ``span`` or ``div`` tags in
2636 the output if they have their ``class`` attribute set.
2637 - The whole document is now surrounded by a ``<div
2638 class="document">`` element.
2639 - Body-level images are now wrapped by their own ``<div>`` elements,
2640 with image classes copied to the wrapper, and for images which
2641 have the ``:align:`` option set, the surrounding ``<div>`` now
2642 receives a class attribute (like ``class="align-left"``).
2644 * docutils/writers/latex2e.py:
2646 - no newline after depart_term.
2647 - Added translations for some Unicode quotes.
2648 - Added option "font-encoding", made package AE the default.
2649 - `stylesheet`_ and `stylesheet_path`_ settings are now mutually
2651 - ``--footnote-references`` now overrides
2652 ``--trim-footnote-reference-space``, if applicable.
2653 - The footnote label style now matches the footnote reference style
2654 ("brackets" or "superscript").
2655 - Added support for ``compound`` elements.
2656 - Enabled multiple format names for "raw" directive.
2658 * docs/ref/docutils.dtd:
2660 - Changed structure of the ``line_block`` element; added ``line``.
2661 - Added ``compound`` element.
2662 - Added "ltrim" and "rtrim" attributes to
2663 ``substitution_definition`` element.
2664 - Enabled multiple format names for ``raw`` element.
2665 - Enabled multiple classifiers in ``definition_list_item`` elements.
2667 * docs/ref/rst/directives.txt
2669 - Marked "line-block" as deprecated.
2670 - "Class" directive now allows multiple class names.
2671 - Added "Rationale for Class Attribute Value Conversion".
2672 - Added warning about "raw" overuse/abuse.
2674 * docs/ref/rst/restructuredtext.txt:
2676 - Added syntax for line blocks.
2677 - Definition list items may have multiple classifiers.
2679 * docs/ref/rst/roles.txt:
2683 * tools/stylesheets/default.css:
2685 - Added support for the new line_block structure.
2686 - Added "docutils" class to ``dl``, ``hr``, ``table`` and ``tt``.
2689 Release 0.3.5 (2004-07-29)
2690 ==========================
2694 * _`Documentation cleanup/reorganization`.
2696 - Created new subdirectories of docs/:
2698 * ``docs/user/``: introductory/tutorial material for end-users
2699 * ``docs/dev/``: for core-developers (development notes, plans, etc.)
2700 * ``docs/api/``: API reference material for client-developers
2701 * ``docs/ref/``: reference material for all groups
2702 * ``docs/howto/``: for component-developers and core-developers
2703 * ``docs/peps/``: Python Enhancement Proposals
2705 - Moved ``docs/*`` to ``docs/user/``.
2706 - Moved ``pysource.dtd``, ``pysource.txt``, ``semantics.txt`` from
2707 ``spec/`` to ``docs/dev``.
2708 - Moved ``doctree.txt``, ``docutils.dtd``, ``soextblx.dtd``,
2709 ``transforms.txt`` from ``spec/`` to ``docs/ref/``.
2710 - Moved ``alternatives.txt``, and ``problems.txt`` from
2711 ``spec/rst/`` to ``docs/dev/rst/``.
2712 - Moved ``reStructuredText.txt``, ``directives.txt``,
2713 ``interpreted.txt``, and ``introduction.txt`` from ``spec/rst/``
2714 to ``docs/ref/rst/``. Renamed ``interpreted.txt`` to
2715 ``roles.txt``, ``reStructuredText.txt`` to
2716 ``restructuredtext.txt``.
2717 - Moved ``spec/howto/`` to ``docs/howto``.
2719 In order to keep the CVS history of moved files, we supplied
2720 SourceForge with a script for modifying the Docutils CVS repository.
2722 After running the cleanup script:
2724 - Added ``docs/index.txt``.
2725 - Added a ``.htaccess`` file to the ``web`` module, containing
2726 redirects for all old paths to new paths. They'll preserve
2727 fragments (the "#name" part of a URL), and won't clutter up the
2728 file system, and will correct the URL in the user's browser.
2729 - Added ``BUGS.txt``, ``docs/dev/policies.txt``,
2730 ``docs/dev/website.txt``, ``docs/dev/release.txt`` from all but
2731 the "To Do" list itself in ``docs/dev/todo.txt``.
2732 - Moved "Future Plans" from ``HISTORY.txt`` to new "Priorities"
2733 section of ``docs/dev/todo.txt``.
2734 - Added ``THANKS.txt`` from "Acknowledgements" in ``HISTORY.txt``.
2735 - Added "How To Report Bugs" to ``BUGS.txt``.
2736 - Went through all the sources and docs (including under web/) and
2737 updated links. Mostly done by Lea Wiemann; thanks Lea!
2738 (Still need to update links in the sandboxes.)
2742 * BUGS.txt: Added to project.
2744 * THANKS.txt: Added to project.
2746 * docutils/__init__.py:
2748 - 0.3.4: Post-release.
2752 - Added special error handling & advice for UnicodeEncodeError.
2753 - Refactored Publisher.publish (simplified exception handling &
2754 extracted debug dumps).
2755 - Renamed "enable_exit" parameter of convenience functions to
2756 "enable_exit_status".
2757 - Enabled traceback (exception propagation) by default in
2758 programmatic convenience functions.
2759 - Now publish_file and publish_cmdline convenience functions return
2760 the encoded string results in addition to their regular I/O.
2761 - Extracted common code from publish_file, publish_string, and
2762 publish_parts, into new publish_programmatically. Extracted
2763 settings code to ``Publisher.process_programmatic_settings``.
2764 - In Publisher.publish, disabled ``settings_overrides`` when
2765 ``settings`` is supplied; redundant.
2767 * docutils/frontend.py:
2769 - Added help text for ``--output-encoding-error-handler`` and
2770 ``--error-encoding-error-handler``.
2771 - Renamed ``--exit`` to ``--exit-status``.
2772 - Simplified default-setting code.
2774 * docutils/parsers/rst/__init__.py:
2776 - Added ``--pep-base-url`` and ``--rfc-base-url`` options.
2778 * docutils/parsers/rst/states.py:
2780 - Made URI recognition more aggressive and intelligent.
2782 * docutils/parsers/rst/directives/__init__.py:
2784 - Added several directive option conversion functions.
2786 * docutils/parsers/rst/directives/body.py:
2788 - Moved "table" directive to tables.py.
2790 * docutils/parsers/rst/directives/tables.py: Table-related directives,
2793 * docutils/writers/latex2e.py:
2795 - Added ``--table-style=(standard|booktabs|nolines)``
2796 - figures get "here" option (LaTeX per default puts them at bottom),
2797 and figure content is centered.
2798 - Rowspan support for tables.
2799 - Fix: admonition titles before first section.
2800 - Replace ``--`` in literal by ``-{}-`` because fontencoding T1 has endash.
2801 - Replave ``_`` in literal by an underlined blank, because it has the correct
2803 - Fix: encode pdfbookmark titles, ``#`` broke pdflatex.
2804 - A few unicode replacements, if output_encoding != utf
2805 - Add `graphicx_option`_ setting.
2806 - Indent literal-blocks.
2807 - Fix: omit ``\maketitle`` when there is no document title.
2809 * docs/index.txt: "Docutils Project Documentation Overview", added to
2812 * docs/api/cmdline-tool.txt: "Inside A Docutils Command-Line Front-End
2813 Tool", added to project.
2815 * docs/api/publisher.txt: "The Docutils Publisher", added to project.
2817 * docs/api/runtime-settings.txt: "Docutils Runtime Settings", added to project.
2819 * docs/dev/policies.txt: Added to project (extracted from
2820 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2822 * docs/dev/release.txt: Added to project (extracted from
2823 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2825 * docs/dev/testing.txt: Added to project.
2827 * docs/dev/website.txt: Added to project (extracted from
2828 ``docs/dev/todo.txt``, formerly ``spec/notes.txt``).
2830 * docs/ref/rst/directives.txt:
2832 - Added directives: "table", "csv-table".
2834 * docs/user/rst/cheatsheet.txt: "The reStructuredText Cheat Sheet"
2835 added to project. 1 page for syntax, and a 1 page reference for
2836 directives and roles. Source text to be used as-is; not meant to be
2839 * docs/user/rst/demo.txt: Added to project; moved from tools/test.txt
2840 with a change of title.
2842 * test/functional/, contents, and test/test_functional.py: Added to
2845 * tools/buildhtml.py: Fixed bug with config file handling.
2847 * tools/html.py: Removed from project (duplicate of rst2html.py).
2849 * tools/pep2html.py: Removed from project (duplicate of Python's
2850 nondist/peps/pep2html.py; Docutils' tools/pep.py can be used for
2851 Docutils-related PEPs in docs/peps/).
2853 * tools/rst2pseudoxml.py: Renamed from publish.py.
2855 * tools/rst2xml.py: Renamed from docutils-xml.py.
2857 * tools/test.txt: Removed from project; moved to
2858 docs/user/rst/demo.txt.
2860 * setup.py: Now also installs ``rst2latex.py``.
2863 Release 0.3.3 (2004-05-09)
2864 ==========================
2866 * docutils/__init__.py:
2868 - 0.3.1: Reorganized config file format (multiple sections); see
2870 - Added unknown_reference_resolvers attribute to TransformSpec.
2871 - 0.3.2: Interpreted text reorganization.
2876 - Catch system messages to stop tracebacks from parsing errors.
2877 - Catch exceptions during processing report & exit without
2878 tracebacks, except when ``--traceback`` used.
2879 - Reordered components for OptionParser; application comes last.
2880 - Added "config_section" parameter to several methods and functions,
2881 allowing front ends to easily specify their config file sections.
2882 - Added publish_parts convenience function to allow access to individual
2883 parts of a document.
2885 * docutils/examples.py: Added to project; practical examples of
2886 Docutils client code, to be used as-is or as models for variations.
2888 * docutils/frontend.py:
2890 - Added "traceback" setting.
2891 - Implemented support for config file reorganization:
2892 ``standard_config_files`` moved from ``ConfigParser`` to
2893 ``OptionParser``; added
2894 ``OptionParser.get_config_file_settings()`` and
2895 ``.get_standard_config_settings()``; support for old "[options]"
2896 section (with deprecation warning) and mapping from old to new
2898 - Reimplemented setting validation.
2899 - Enabled flexible boolean values: yes/no, true/false, on/off.
2900 - Added ``Values``, a subclass of ``optparse.Values``, with support
2901 for list setting attributes.
2902 - Added support for new ``DOCUTILSCONFIG`` environment variable;
2903 thanks to Beni Cherniavsky.
2904 - Added ``--no-section-numbering`` option.
2908 - Catch IOErrors when opening source & destination files, report &
2909 exit without tracebacks. Added ``handle_io_errors`` parameter to
2910 ``FileInput`` & ``FileOutput`` to enable caller error handling.
2912 * docutils/nodes.py:
2914 - Changed ``SparseNodeVisitor`` and ``GenericNodeVisitor`` dynamic
2915 method definitions (via ``exec``) to dynamic assignments (via
2916 ``setattr``); thanks to Roman Suzi.
2917 - Encapsulated visitor dynamic assignments in a function; thanks to
2919 - Added indirect_reference_name attribute to the Targetable
2920 class. This attribute holds the whitespace_normalized_name
2921 (contains mixed case) of a target.
2923 * docutils/statemachine.py:
2925 - Renamed ``StringList.strip_indent`` to ``.trim_left``.
2926 - Added ``StringList.get_2D_block``.
2928 * docutils/utils.py:
2930 - Added "level" attribute to SystemMessage exceptions.
2932 * docutils/languages/af.py: Added to project; Afrikaans mappings by
2935 * docutils/languages/cs.py: Added to project; Czech mappings by Marek
2938 * docutils/languages/eo.py: Added to project; Esperanto mappings by
2939 Marcelo Huerta San Martin.
2941 * docutils/languages/pt_br.py: Added to project; Brazilian Portuguese
2942 mappings by Lalo Martins.
2944 * docutils/languages/ru.py: Added to project; Russian mappings by
2947 * docutils/parsers/rst/roles.py: Added to project. Contains
2948 interpreted text role functions, a registry for interpreted text
2949 roles, and an API for adding to and retrieving from the registry.
2950 Contributed by Edward Loper.
2952 * docutils/parsers/rst/states.py:
2954 - Updated ``RSTState.nested_parse`` for "include" in table cells.
2955 - Allowed true em-dash character and "``---``" as block quote
2957 - Added support for <angle-bracketed> complex option arguments
2959 - Fixed handling of backslashes in substitution definitions.
2960 - Fixed off-by-1 error with extra whitespace after substitution
2961 definition directive.
2962 - Added inline markup parsing to field lists' field names.
2963 - Added support for quoted (and unindented) literal blocks.
2964 Driven in part by a bribe from Frank Siebenlist (thanks!).
2965 - Parser now handles escapes in URIs correctly.
2966 - Made embedded-URIs' reference text omittable. Idea from Beni
2968 - Refactored explicit target processing code.
2969 - Added name attribute to references containing the reference name only
2970 through whitespace_normalize_name (no case changes).
2971 - parse_target no longer returns the refname after going through
2972 normalize_name. This is now handled in make_target.
2973 - Fixed bug relating to role-less interpreted text in non-English
2975 - Reorganized interpreted text processing; moved code into the new
2976 roles.py module. Contributed by Edward Loper.
2977 - Refactored ``Body.parse_directive`` into ``run_directive`` and
2978 ``parse_directive_block``.
2980 * docutils/parsers/rst/tableparser.py:
2982 - Reworked for ``StringList``, to support "include" directives in
2985 * docutils/parsers/rst/directives/__init__.py:
2987 - Renamed ``unchanged()`` directive option conversion function to
2988 ``unchanged_required``, and added a new ``unchanged``.
2989 - Catch unicode value too high error; fixes bug 781766.
2990 - Beefed up directive error reporting.
2992 * docutils/parsers/rst/directives/body.py:
2994 - Added basic "table" directive.
2996 * docutils/parsers/rst/directives/images.py:
2998 - Added "target" option to "image" directive.
2999 - Added name attribute to references containing the reference name only
3000 through whitespace_normalize_name (no case changes).
3002 * docutils/parsers/rst/directives/misc.py:
3004 - Isolated the import of the ``urllib2`` module; was causing
3005 problems on SourceForge (``libssl.so.2`` unavailable?).
3006 - Added the "role" directive for declaring custom interpreted text
3009 * docutils/parsers/rst/directives/parts.py:
3011 - The "contents" directive does more work up-front, creating the
3012 "topic" and "title", and leaving the "pending" node for the
3013 transform. Allows earlier reference resolution; fixes subtle bug.
3015 * docutils/parsers/rst/languages/af.py: Added to project; Afrikaans
3016 mappings by Jannie Hofmeyr.
3018 * docutils/parsers/rst/languages/cs.py: Added to project; Czech
3019 mappings by Marek Blaha.
3021 * docutils/parsers/rst/languages/eo.py: Added to project; Esperanto
3022 mappings by Marcelo Huerta San Martin.
3024 * docutils/parsers/rst/languages/pt_br.py: Added to project; Brazilian
3025 Portuguese mappings by Lalo Martins.
3027 * docutils/parsers/rst/languages/ru.py: Added to project; Russian
3028 mappings by Roman Suzi.
3030 * docutils/transforms/parts.py:
3032 - The "contents" directive does more work up-front, creating the
3033 "topic" and "title", and leaving the "pending" node for the
3034 transform. Allows earlier reference resolution; fixes subtle bug.
3035 - Added support for disabling of section numbering.
3037 * docutils/transforms/references.py:
3039 - Verifying that external targets are truly targets and not indirect
3040 references. This is because we are now adding a "name" attribute to
3041 references in addition to targets. Note sure if this is correct!
3042 - Added code to hook into the unknown_reference_resolvers list for a
3043 transformer in resolve_indirect_target. This allows the
3044 unknown_reference_resolvers to keep around indirect targets which
3045 docutils doesn't know about.
3046 - Added specific error message for duplicate targets.
3048 * docutils/transforms/universal.py:
3050 - Added FilterMessages transform (removes system messages below the
3051 verbosity threshold).
3052 - Added hook (via docutils.TransformSpec.unknown_reference_resolvers)
3053 to FinalCheckVisitor for application-specific handling of
3054 unresolvable references.
3055 - Added specific error message for duplicate targets.
3057 * docutils/writers/__init__.py:
3059 - Added assemble_parts method to the Writer class to allow for
3060 access to a documents individual parts.
3061 - Documented & set default for ``Writer.output`` attribute.
3063 * docutils/writers/html4css1.py:
3065 - Fixed unicode handling of attribute values (bug 760673).
3066 - Prevent duplication of "class" attribute values (bug report from
3068 - Improved table grid/border handling (prompted by report from Bob
3070 - Added support for table titles.
3071 - Added "<title />" for untitled docs, for XHTML conformance; thanks
3073 - Added functionality to keep track of individual parts of a document
3074 and store them in a dictionary as the "parts" attribute of the writer.
3075 Contributed by Reggie Dugard at the Docutils sprint at PyCon DC 2004.
3076 - Added proper support for the "scale" attribute of the "image"
3077 element. Contributed by Brent Cook.
3078 - Added ``--initial-header-level`` option.
3079 - Fixed bug: the body_pre_docinfo segment depended on there being a
3080 docinfo; if no docinfo, the document title was incorporated into
3081 the body segment. Adversely affected the publish_parts interface.
3083 * docutils/writers/latex2e.py:
3085 - Changed default stylesheet to "no stylesheet" to avoid latex complaining
3086 about a missing file.
3087 - Added options and support: ``--compound-enumerators``,
3088 ``--section-prefix-for-enumerators``, and
3089 ``--section-enumerator-separator``. By John F Meinel Jr (SF patch
3091 - Added option ``--use-verbatim-when-possible``, to avoid
3092 problematic characters (eg, '~' in italian) in literal blocks.
3093 - It's now possible to use four section levels in the `book` and
3094 `report` LaTeX document classes. The default `article` class still has
3097 * docs/config.txt: "Docutils Configuration Files", added to project.
3098 Moved config file entry descriptions from tools.txt.
3102 - Moved config file entry descriptions to config.txt.
3104 * spec/notes.txt: Continual updates. Added "Setting Up For Docutils
3107 * spec/howto/rst-roles.txt: "Creating reStructuredText Interpreted
3108 Text Roles", added to project.
3110 * spec/rst/reStructuredText.txt:
3112 - Added description of support for <angle-bracketed> complex option
3113 arguments to option lists.
3114 - Added subsections for indented and quoted literal blocks.
3116 * test: Continually adding & updating tests.
3118 - Added test/test_settings.py & test/data/config_*.txt support
3120 - Added test/test_writers/test_htmlfragment.py.
3122 * test/DocutilsTestSupport.py:
3124 - Refactored LaTeX publisher test suite/case class names to make
3125 testing other writers easier.
3126 - Added HtmlWriterPublishTestCase and HtmlFragmentTestSuite classes
3127 to test the processing of HTML fragments which use the new
3128 publish_parts convenience function.
3130 * tools/buildhtml.py:
3132 - Added support for the ``--prune`` option.
3133 - Removed dependency on pep2html.py; plaintext PEPs no longer
3136 * tools/docutils.conf:
3138 - Updated for configuration file reorganization.
3140 * tools/rst2html.py:
3142 - copied from tools/html.py
3146 - added a 'scripts' section to configuration
3147 - added 'tools/rst2html.py' to the scripts section
3150 Release 0.3 (2003-06-24)
3151 ========================
3155 * Renamed "attribute" to "option" for directives/extensions.
3157 * Renamed transform method "transform" to "apply".
3159 * Renamed "options" to "settings" for runtime settings (as set by
3160 command-line options). Sometimes "option" (singular) became
3161 "settings" (plural). Some variations below:
3163 - document.options -> document.settings (stored in other objects as
3165 - option_spec -> settings_spec (not directives though)
3166 - OptionSpec -> SettingsSpec
3167 - cmdline_options -> settings_spec
3168 - relative_path_options -> relative_path_settings
3169 - option_default_overrides -> settings_default_overrides
3170 - Publisher.set_options -> Publisher.get_settings
3174 * COPYING.txt: Added "Public Domain Dedication".
3176 * FAQ.txt: Frequently asked questions, added to project.
3180 - Updated with PyPI Trove classifiers.
3181 - Conditional installation of third-party modules.
3183 * docutils/__init__.py:
3185 - Bumped version to 0.2.1 to reflect changes to I/O classes.
3186 - Bumped version to 0.2.2 to reflect changes to stylesheet options.
3187 - Factored ``SettingsSpec`` out of ``Component``; separately useful.
3188 - Bumped version to 0.2.3 because of the new ``--embed-stylesheet``
3189 option and its effect on the PEP template & writer.
3190 - Bumped version to 0.2.4 due to changes to the PEP template &
3192 - Bumped version to 0.2.5 to reflect changes to Reporter output.
3193 - Added ``TransformSpec`` class for new transform system.
3194 - Bumped version to 0.2.6 for API changes (renaming).
3195 - Bumped version to 0.2.7 for new ``docutils.core.publish_*``
3196 convenience functions.
3197 - Added ``Component.component_type`` attribute.
3198 - Bumped version to 0.2.8 because of the internal parser switch from
3199 plain lists to the docutils.statemachine.StringList objects.
3200 - Bumped version to 0.2.9 because of the frontend.py API changes.
3201 - Bumped version to 0.2.10 due to changes to the project layout
3202 (third-party modules removed from the "docutils" package), and
3203 signature changes in ``io.Input``/``io.Output``.
3204 - Changed version to 0.3.0 for release.
3208 - Made ``publish()`` a bit more convenient.
3209 - Generalized ``Publisher.set_io``.
3210 - Renamed ``publish()`` to ``publish_cmdline()``; rearranged its
3211 parameters; improved its docstring.
3212 - Added ``publish_file()`` and ``publish_string()``.
3213 - Factored ``Publisher.set_source()`` and ``.set_destination()``
3215 - Added support for ``--dump-pseudo-xml``, ``--dump-settings``, and
3216 ``--dump-transforms`` hidden options.
3217 - Added ``Publisher.apply_transforms()`` method.
3218 - Added ``Publisher.set_components()`` method; support for
3219 ``publish_*()`` conveninece functions.
3220 - Moved config file processing to docutils/frontend.py.
3221 - Added support for exit status ("exit_level" setting &
3222 ``enable_exit`` parameter for Publisher.publish() and convenience
3225 * docutils/frontend.py:
3227 - Check for & exit on identical source & destination paths.
3228 - Fixed bug with absolute paths & ``--config``.
3229 - Set non-command-line defaults in ``OptionParser.__init__()``:
3230 ``_source`` & ``_destination``.
3231 - Distributed ``relative_path_settings`` to components; updated
3232 ``OptionParser.populate_from_components()`` to combine it all.
3233 - Require list of keys in ``make_paths_absolute`` (was implicit in
3234 global ``relative_path_settings``).
3235 - Added ``--expose-internal-attribute``, ``--dump-pseudo-xml``,
3236 ``--dump-settings``, and ``--dump-transforms`` hidden options.
3237 - Removed nasty internals-fiddling ``ConfigParser.get_section``
3238 code, replaced with correct code.
3239 - Added validation functionality for config files.
3240 - Added ``--error-encoding`` option/setting, "_disable_config"
3242 - Added encoding validation; updated ``--input-encoding`` and
3243 ``--output-encoding``; added ``--error-encoding-error-handler`` and
3244 ``--output-encoding-error-handler``.
3245 - Moved config file processing from docutils/core.py.
3246 - Updated ``OptionParser.populate_from_components`` to handle new
3247 ``SettingsSpec.settings_defaults`` dict.
3248 - Added support for "-" => stdin/stdout.
3249 - Added "exit_level" setting (``--exit`` option).
3253 - Split ``IO`` classes into subclasses of ``Input`` and ``Output``.
3254 - Added automatic closing to ``FileInput`` and ``FileOutput``.
3255 - Delayed opening of ``FileOutput`` file until ``write()`` called.
3256 - ``FileOutput.write()`` now returns the encoded output string.
3257 - Try to get path/stream name automatically in ``FileInput`` &
3259 - Added defaults for source & destination paths.
3260 - Allow for Unicode I/O with an explicit "unicode" encoding.
3261 - Added ``Output.encode()``.
3262 - Removed dependency on runtime settings; pass encoding directly.
3263 - Recognize Unicode strings in ``Input.decode()``.
3264 - Added support for output encoding error handlers.
3266 * docutils/nodes.py:
3268 - Added "Invisible" element category class.
3269 - Changed ``Node.walk()`` & ``.walkabout()`` to permit more tree
3270 modification during a traversal.
3271 - Added element classes: ``line_block``, ``generated``, ``address``,
3272 ``sidebar``, ``rubric``, ``attribution``, ``admonition``,
3273 ``superscript``, ``subscript``, ``inline``
3274 - Added support for lists of nodes to ``Element.insert()``.
3275 - Fixed parent linking in ``Element.replace()``.
3276 - Added new abstract superclass ``FixedTextElement``; adds
3277 "xml:space" attribute.
3278 - Added support for "line" attribute of ``system_message`` nodes.
3279 - Added support for the observer pattern from ``utils.Reporter``.
3280 Added ``parse_messages`` and ``transform_messages`` attributes to
3281 ``document``, removed ``messages``. Added ``note_parse_message``
3282 and ``note_transform_message`` methods.
3283 - Added support for improved diagnostics:
3285 - Added "document", "source", and "line" internal attributes to
3286 ``Node``, set by ``Node.setup_child()``.
3287 - Converted variations on ``node.parent = self`` to
3288 ``self.setup_child(node)``.
3289 - Added ``document.current_source`` & ``.current_line``
3290 attributes, and ``.note_source`` observer method.
3291 - Changed "system_message" output to GNU-Tools format.
3293 - Added a "rawsource" attribute to the ``Text`` class, for text
3294 before backslash-escape resolution.
3295 - Support for new transform system.
3296 - Reworked ``pending`` element.
3297 - Fixed XML DOM bug (SF #660611).
3298 - Removed the ``interpeted`` element class and added
3299 ``title_reference``, ``abbreviation``, ``acronym``.
3300 - Made substitutions case-sensitive-but-forgiving; moved some code
3302 - Fixed Unicode bug on element attributes (report: William Dode).
3304 * docutils/optik.py: Removed from project; replaced with
3305 extras/optparse.py and extras/textwrap.py. These will be installed
3306 only if they're not already present in the Python installation.
3308 * docutils/roman.py: Moved to extras/roman.py; this will be installed
3309 only if it's not already present in the Python installation.
3311 * docutils/statemachine.py:
3313 - Factored out ``State.add_initial_transitions()`` so it can be
3315 - Converted whitespace-specific "blank" and "indent" transitions
3316 from special-case code to ordinary transitions: removed
3317 ``StateMachineWS.check_line()`` & ``.check_whitespace()``, added
3318 ``StateWS.add_initial_transitions()`` method, ``ws_patterns`` &
3319 ``ws_initial_transitions`` attributes.
3320 - Removed ``State.match_transition()`` after merging it into
3322 - Added ``StateCorrection`` exception.
3323 - Added support for ``StateCorrection`` in ``StateMachine.run()``
3324 (moved ``TransitionCorrection`` support there too.)
3325 - Changed ``StateMachine.next_line()`` and ``.goto_line()`` to raise
3326 ``EOFError`` instead of ``IndexError``.
3327 - Added ``State.no_match`` method.
3328 - Added support for the Observer pattern, triggered by input line
3330 - Added ``strip_top`` parameter to
3331 ``StateMachineWS.get_first_known_indented``.
3332 - Made ``context`` a parameter to ``StateMachine.run()``.
3333 - Added ``ViewList`` & ``StringList`` classes;
3334 ``extract_indented()`` becomes ``StringList.get_indented()``.
3335 - Added ``StateMachine.insert_input()``.
3336 - Fixed ViewList slice handling for Python 2.3. Patch from (and
3337 thanks to) Fred Drake.
3339 * docutils/utils.py:
3341 - Added a ``source`` attribute to Reporter instances and
3342 ``system_message`` elements.
3343 - Added an observer pattern to ``utils.Reporter`` to keep track of
3345 - Fixed bugs in ``relative_path()``.
3346 - Added support for improved diagnostics.
3347 - Moved ``normalize_name()`` to nodes.py (``fully_normalize_name``).
3348 - Added support for encoding Reporter stderr output, and encoding
3350 - Reporter keeps track of the highest level system message yet
3353 * docutils/languages: Fixed bibliographic field language lookups.
3355 * docutils/languages/es.py: Added to project; Spanish mappings by
3356 Marcelo Huerta San Martin.
3358 * docutils/languages/fr.py: Added to project; French mappings by
3361 * docutils/languages/it.py: Added to project; Italian mappings by
3364 * docutils/languages/sk.py: Added to project; Slovak mappings by
3367 * docutils/parser/__init__.py:
3369 - Added ``Parser.finish_parse()`` method.
3371 * docutils/parser/rst/__init__.py:
3373 - Added options: ``--pep-references``, ``--rfc-references``,
3374 ``--tab-width``, ``--trim-footnote-reference-space``.
3376 * docutils/parsers/rst/states.py:
3378 - Changed "title under/overline too short" system messages from INFO
3379 to WARNING, and fixed its insertion location.
3380 - Fixed enumerated list item parsing to allow paragraphs & section
3381 titles to begin with enumerators.
3382 - Converted system messages to use the new "line" attribute.
3383 - Fixed a substitution reference edge case.
3384 - Added support for ``--pep-references`` and ``--rfc-references``
3385 options; reworked ``Inliner`` code to make customization easier.
3386 - Removed field argument parsing.
3387 - Added support for short section title over/underlines.
3388 - Fixed "simple reference name" regexp to ignore text like
3389 "object.__method__"; not an anonymous reference.
3390 - Added support for improved diagnostics.
3391 - Reworked directive API, based on Dethe Elza's contribution. Added
3392 ``Body.parse_directive()``, ``.parse_directive_options()``,
3393 ``.parse_directive_arguments()`` methods.
3394 - Added ``ExtensionOptions`` class, to parse directive options
3395 without parsing field bodies. Factored
3396 ``Body.parse_field_body()`` out of ``Body.field()``, overridden in
3397 ``ExtensionOptions``.
3398 - Improved definition list term/classifier parsing.
3399 - Added warnings for unknown directives.
3400 - Renamed ``Stuff`` to ``Struct``.
3401 - Now flagged as errors: transitions at the beginning or end of
3402 sections, empty sections (except title), and empty documents.
3403 - Updated for ``statemachine.StringList``.
3404 - Enabled recognition of schemeless email addresses in targets.
3405 - Added support for embedded URIs in hyperlink references.
3406 - Added backslash-escapes to inline markup end-string suffix.
3407 - Added support for correct interpreted text processing.
3408 - Fixed nested title parsing (topic, sidebar directives).
3409 - Added special processing of backslash-escaped whitespace (idea
3410 from David Abrahams).
3411 - Made substitutions case-sensitive-but-forgiving; moved some code
3412 to ``docutils.nodes``.
3413 - Added support for block quote attributions.
3414 - Added a kludge to work-around a conflict between the bubble-up
3415 parser strategy and short titles (<= 3 char-long over- &
3416 underlines). Fixes SF bug #738803 "infinite loop with multiple
3417 titles" submitted by Jason Diamond.
3418 - Added explicit interpreted text roles for standard inline markup:
3419 "emphasis", "strong", "literal".
3420 - Implemented "superscript" and "subscript" interpreted text roles.
3421 - Added initial support for "abbreviation" and "acronym" roles;
3423 - Added support for ``--trim-footnote-reference-space`` option.
3424 - Optional space before colons in directives & hyperlink targets.
3426 * docutils/parsers/rst/tableparser.py:
3428 - Fixed a bug that was producing unwanted empty rows in "simple"
3430 - Detect bad column spans in "simple" tables.
3432 * docutils/parsers/rst/directives: Updated all directive functions to
3435 * docutils/parsers/rst/directives/__init__.py:
3437 - Added ``flag()``, ``unchanged()``, ``path()``,
3438 ``nonnegative_int()``, ``choice()``, and ``class_option()``
3439 directive option helper functions.
3440 - Added warnings for unknown directives.
3441 - Return ``None`` for missing directives.
3442 - Added ``register_directive()``, thanks to William Dode and Paul
3445 * docutils/parsers/rst/directives/admonitions.py:
3447 - Added "admonition" directive.
3449 * docutils/parsers/rst/directives/body.py: Added to project. Contains
3450 the "topic", "sidebar" (from Patrick O'Brien), "line-block",
3451 "parsed-literal", "rubric", "epigraph", "highlights" and
3452 "pull-quote" directives.
3454 * docutils/parsers/rst/directives/images.py:
3456 - Added an "align" attribute to the "image" & "figure" directives
3457 (by Adam Chodorowski).
3458 - Added "class" option to "image", and "figclass" to "figure".
3460 * docutils/parsers/rst/directives/misc.py:
3462 - Added "include", "raw", and "replace" directives, courtesy of
3464 - Added "unicode" and "class" directives.
3466 * docutils/parsers/rst/directives/parts.py:
3468 - Added the "sectnum" directive; by Dmitry Jemerov.
3469 - Added "class" option to "contents" directive.
3471 * docutils/parsers/rst/directives/references.py: Added to project.
3472 Contains the "target-notes" directive.
3474 * docutils/parsers/rst/languages/__init__.py:
3476 - Return ``None`` from get_language() for missing language modules.
3478 * docutils/parsers/rst/languages/de.py: Added to project; German
3479 mappings by Engelbert Gruber.
3481 * docutils/parsers/rst/languages/en.py:
3483 - Added interpreted text roles mapping.
3485 * docutils/parsers/rst/languages/es.py: Added to project; Spanish
3486 mappings by Marcelo Huerta San Martin.
3488 * docutils/parsers/rst/languages/fr.py: Added to project; French
3489 mappings by William Dode.
3491 * docutils/parsers/rst/languages/it.py: Added to project; Italian
3492 mappings by Nicola Larosa.
3494 * docutils/parsers/rst/languages/sk.py: Added to project; Slovak
3495 mappings by Miroslav Vasko.
3497 * docutils/readers/__init__.py:
3499 - Added support for the observer pattern from ``utils.Reporter``, in
3500 ``Reader.parse`` and ``Reader.transform``.
3501 - Removed ``Reader.transform()`` method.
3502 - Added default parameter values to ``Reader.__init__()`` to make
3503 instantiation easier.
3504 - Removed bogus aliases: "restructuredtext" is *not* a Reader.
3506 * docutils/readers/pep.py:
3508 - Added the ``peps.TargetNotes`` transform to the Reader.
3509 - Removed PEP & RFC reference detection code; moved to
3510 parsers/rst/states.py as options (enabled here by default).
3511 - Added support for pre-acceptance PEPs (no PEP number yet).
3512 - Moved ``Inliner`` & made it a class attribute of ``Reader`` for
3515 * docutils/readers/python: Python Source Reader subpackage added to
3516 project, including preliminary versions of:
3519 - moduleparser.py: Parser for Python modules.
3521 * docutils/transforms/__init__.py:
3523 - Added ``Transformer`` class and completed transform reform.
3524 - Added unknown_reference_resolvers list for each transformer. This list holds
3525 the list of functions provided by each component of the transformer that
3526 help resolve references.
3528 * docutils/transforms/frontmatter.py:
3530 - Improved support for generic fields.
3531 - Fixed bibliographic field language lookups.
3533 * docutils/transforms/misc.py: Added to project. Miscellaneous
3536 * docutils/transforms/parts.py:
3538 - Moved the "id" attribute from TOC list items to the references
3539 (``Contents.build_contents()``).
3540 - Added the ``SectNum`` transform; by Dmitry Jemerov.
3541 - Added "class" attribute support to ``Contents``.
3543 * docutils/transforms/peps.py:
3545 - Added ``mask_email()`` function, updating to pep2html.py's
3547 - Linked "Content-Type: text/x-rst" to PEP 12.
3548 - Added the ``TargetNotes`` PEP-specific transform.
3549 - Added ``TargetNotes.cleanup_callback``.
3550 - Added title check to ``Headers``.
3552 * docutils/transforms/references.py:
3554 - Added the ``TargetNotes`` generic transform.
3555 - Split ``Hyperlinks`` into multiple transforms.
3556 - Fixed bug with multiply-indirect references (report: Bruce Smith).
3557 - Added check for circular indirect references.
3558 - Made substitutions case-sensitive-but-forgiving.
3560 * docutils/transforms/universal.py:
3562 - Added support for the ``--expose-internal-attributes`` option.
3563 - Removed ``Pending`` transform classes & data.
3565 * docutils/writers/__init__.py:
3567 - Removed ``Writer.transform()`` method.
3569 * docutils/writers/docutils-xml.py:
3571 - Added XML and doctype declarations.
3572 - Added ``--no-doctype`` and ``--no-xml-declaration`` options.
3574 * docutils/writers/html4css1.py:
3576 - "name" attributes only on these tags: a, applet, form, frame,
3578 - Added "name" attribute to <a> in section titles for Netscape 4
3579 support (bug report: Pearu Peterson).
3580 - Fixed targets (names) on footnote, citation, topic title,
3581 problematic, and system_message nodes (for Netscape 4).
3582 - Changed field names from "<td>" to "<th>".
3583 - Added "@" to "@" encoding to thwart address harvesters.
3584 - Improved the vertical whitespace optimization; ignore "invisible"
3585 nodes (targets, comments, etc.).
3586 - Improved inline literals with ``<span class="pre">`` around chunks
3587 of text and `` `` for runs of spaces.
3588 - Improved modularity of output; added ``self.body_pre_docinfo`` and
3589 ``self.docinfo`` segments.
3590 - Added support for "line_block", "address" elements.
3591 - Improved backlinks (footnotes & system_messages).
3592 - Improved system_message output.
3593 - Redefined ``--stylesheet`` as containing an invariant URL, used
3594 verbatim. Added ``--stylesheet-path``, interpreted w.r.t. the
3596 - Added ``--footnote-references`` option (superscript or brackets).
3597 - Added ``--compact-lists`` and ``--no-compact-lists`` options.
3598 - Added ``--embed-stylesheet`` and ``--link-stylesheet`` options;
3599 factored out ``HTMLTranslator.get_stylesheet_reference()``.
3600 - Improved field list rendering.
3601 - Added Docutils version to "generator" meta tag.
3602 - Fixed a bug with images; they must be inline, so wrapped in <p>.
3603 - Improved layout of <pre> HTML source.
3604 - Fixed attribute typo on <colspec>.
3605 - Refined XML prologue.
3606 - Support for no stylesheet.
3607 - Removed "interpreted" element support.
3608 - Added support for "title_reference", "sidebar", "attribution",
3609 "rubric", and generic "admonition" elements.
3610 - Added ``--attribution`` option.
3611 - Added support for "inline", "subscript", "superscript" elements.
3612 - Added initial support for "abbreviation" and "acronym";
3615 * docutils/writers/latex2e.py: LaTeX Writer, added by Engelbert Gruber
3619 - Double quotes in literal blocks (special treatment for de/ngerman).
3620 - Added ``--hyperlink-color`` option ('0' turns off coloring of links).
3621 - Added ``--attribution`` option.
3622 - Right align attributions.
3624 * docutils/writers/pep_html.py:
3626 - Parameterized output encoding in PEP template.
3627 - Reworked substitutions from ``locals()`` into ``subs`` dict.
3628 - Redefined ``--pep-stylesheet`` as containing an invariant URL, used
3629 verbatim. Added ``--pep-stylesheet-path``, interpreted w.r.t. the
3631 - Added an override on the ``--footnote-references`` option.
3632 - Factored out ``HTMLTranslator.get_stylesheet_reference()``.
3633 - Added Docutils version to "generator" meta tag.
3634 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3638 - Added a "silent" setting for ``buildhtml.py``.
3639 - Added a "Getting Help" section.
3640 - Rearranged the structure.
3641 - Kept up to date, with new settings, command-line options etc.
3642 - Added section for ``rst2latex.py`` (Engelbert Gruber).
3643 - Converted settings table into a definition list.
3645 * docs/rst/quickstart.txt:
3647 - Added a table of contents.
3648 - Added feedback information.
3649 - Added mention of minimum section title underline lengths.
3650 - Removed the 4-character minimum for section title underlines.
3652 * docs/rst/quickref.html:
3654 - Added a "Getting Help" section.
3655 - Added a style to make section title backlinks more subtle.
3656 - Added mention of minimum section title underline lengths.
3657 - Removed the 4-character minimum for section title underlines.
3659 * extras: Directory added to project; contains third-party modules
3660 that Docutils depends on (optparse, textwrap, roman). These are
3661 only installed if they're not already present.
3663 * licenses: Directory added to project; contains copies of license
3664 files for non-public-domain files.
3668 - Changed the focus. It's about DTD elements: structural
3669 relationships, semantics, and external (public) attributes. Not
3670 about the element class library.
3671 - Moved some implementation-specific stuff into ``docutils.nodes``
3673 - Wrote descriptions of all common attributes and parameter
3674 entities. Filled in introductory material.
3675 - Working through the element descriptions: 55 down, 37 to go.
3676 - Removed "Representation of Horizontal Rules" to
3677 spec/rst/alternatives.txt.
3679 * spec/docutils.dtd:
3681 - Added "generated" inline element.
3682 - Added "line_block" body element.
3683 - Added "auto" attribute to "title".
3684 - Changed content models of "literal_block" and "doctest_block" to
3686 - Added ``%number;`` attribute type parameter entity.
3687 - Changed ``%structural.elements;`` to ``%section.elements``.
3688 - Updated attribute types; made more specific.
3689 - Added "address" bibliographic element.
3690 - Added "line" attribute to ``system_message`` element.
3691 - Removed "field_argument" element; "field_name" may contain
3692 multiple words and whitespace.
3693 - Changed public identifier to docutils.sf.net.
3694 - Removed "interpreted" element; added "title_reference",
3695 "abbreviation", "acronym".
3696 - Removed "refuri" attribute from "footnote_reference" and
3697 "citation_reference".
3698 - Added "sidebar", "rubric", "attribution", "admonition",
3699 "superscript", "subscript", and "inline" elements.
3701 * spec/pep-0256.txt: Converted to reStructuredText & updated.
3703 * spec/pep-0257.txt: Converted to reStructuredText & updated.
3705 * spec/pep-0258.txt: Converted to reStructuredText & updated.
3707 * spec/semantics.txt: Updated with text from a Doc-SIG response to
3710 * spec/transforms.txt: Added to project.
3712 * spec/howto: Added subdirectory, for developer how-to docs.
3714 * spec/howto/rst-directives.txt: Added to project. Original by Dethe
3715 Elza, edited & extended by David Goodger.
3717 * spec/howto/i18n.txt: Docutils Internationalization. Added to
3720 * spec/rst/alternatives.txt:
3722 - Added "Doctree Representation of Transitions" from
3724 - Updated "Inline External Targets" & closed the debate.
3725 - Added ideas for interpreted text syntax extensions.
3726 - Added "Nested Inline Markup" section.
3728 * spec/rst/directives.txt:
3730 - Added directives: "topic", "sectnum", "target-notes",
3731 "line-block", "parsed-literal", "include", "replace", "sidebar",
3732 "admonition", "rubric", "epigraph", "highlights", "unicode" and
3734 - Formalized descriptions of directive details.
3735 - Added an "align" attribute to the "image" & "figure" directives
3736 (by Adam Chodorowski).
3737 - Added "class" options to "topic", "sidebar", "line-block",
3738 "parsed-literal", "contents", and "image"; and "figclass" to
3741 * spec/rst/interpreted.txt: Added to project. Descriptions of
3742 interpreted text roles.
3744 * spec/rst/introduction.txt:
3746 - Added pointers to material for new users.
3748 * spec/rst/reStructuredText.txt:
3750 - Disambiguated comments (just add a newline after the "::").
3751 - Updated enumerated list description; added a discussion of the
3752 second-line validity checking.
3753 - Updated directive description.
3754 - Added a note redirecting newbies to the user docs.
3755 - Expanded description of inline markup start-strings in non-markup
3757 - Removed field arguments and made field lists a generic construct.
3758 - Removed the 4-character minimum for section title underlines.
3759 - Clarified term/classifier delimiter & inline markup ambiguity
3761 - Added "Embedded URIs".
3762 - Updated "Interpreted Text" section.
3763 - Added "Character-Level Inline Markup" section.
3765 * test: Continually adding & updating tests.
3767 - Moved test/test_rst/ to test/test_parsers/test_rst/.
3768 - Moved test/test_pep/ to test/test_readers/test_pep/.
3769 - Added test/test_readers/test_python/.
3770 - Added test/test_writers/ (Engelbert Gruber).
3774 - Made the ``locale.setlocale()`` calls in front ends
3777 * tools/buildhtml.py:
3779 - Added ``--silent`` option.
3780 - Fixed bug with absolute paths & ``--config``.
3781 - Updated for new I/O classes.
3782 - Added some exception handling.
3783 - Separated publishers' setting defaults; prevents interference.
3784 - Updated for new ``publish_file()`` convenience function.
3786 * tools/pep-html-template:
3788 - Allow for ``--embed-stylesheet``.
3789 - Added Docutils version to "generator" meta tag.
3790 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3791 - Conform to XHTML spec.
3793 * tools/pep2html.py:
3795 - Made ``argv`` a parameter to ``main()``.
3796 - Added support for "Content-Type:" header & arbitrary PEP formats.
3797 - Linked "Content-Type: text/plain" to PEP 9.
3798 - Files skipped (due to an error) are not pushed onto the server.
3799 - Updated for new I/O classes.
3800 - Added ``check_requirements()`` & ``pep_type_error()``.
3801 - Added some exception handling.
3802 - Updated for new ``publish_string()`` convenience function.
3803 - Added a "DO NOT EDIT THIS FILE" comment to generated HTML.
3805 * tools/quicktest.py:
3807 - Added ``-V``/``--version`` option.
3809 * tools/rst2latex.py: LaTeX front end, added by Engelbert Gruber.
3811 * tools/unicode2rstsubs.py: Added to project. Produces character
3812 entity files (reSructuredText substitutions) from the MathML master
3815 * tools/editors: Support code for editors, added to project. Contains
3816 ``emacs/restructuredtext.el``.
3818 * tools/stylesheets/default.css: Moved into the stylesheets directory.
3820 - Added style for chunks of inline literals.
3821 - Removed margin for first child of table cells.
3822 - Right-aligned field list names.
3823 - Support for auto-numbered section titles in TOCs.
3824 - Increased the size of inline literals (<tt>) in titles.
3825 - Restored the light gray background for inline literals.
3826 - Added support for "line_block" elements.
3827 - Added style for "address" elements.
3828 - Removed "a.footnote-reference" style; doing it with ``<sup>`` now.
3829 - Improved field list rendering.
3830 - Vertical whitespace improvements.
3831 - Removed "a.target" style.
3833 * tools/stylesheets/pep.css:
3835 - Fixed nested section margins.
3836 - Other changes parallel those of ``../default.css``.
3839 Release 0.2 (2002-07-31)
3840 ========================
3844 - The word "component" was being used ambiguously. From now on,
3845 "component" will be used to mean "Docutils component", as in Reader,
3846 Writer, Parser, or Transform. Portions of documents (Table of
3847 Contents, sections, etc.) will be called "document parts".
3848 - Did a grand renaming: a lot of ``verylongnames`` became
3849 ``very_long_names``.
3850 - Cleaned up imports: no more relative package imports or
3851 comma-separated lists of top-level modules.
3852 - Added support for an option values object which carries default
3853 settings and overrides (from command-line options and library use).
3854 - Added internal Unicode support, and support for both input and
3856 - Added support for the ``docutils.io.IO`` class & subclasses.
3860 * docutils/__init__.py:
3862 - Added ``ApplicationError`` and ``DataError``, for use throughout
3864 - Added ``Component`` base class for Docutils components; implements
3865 the ``supports`` method.
3866 - Added ``__version__`` (thus, ``docutils.__version__``).
3870 - Removed many keyword parameters to ``Publisher.__init__()`` and
3871 ``publish()``; bundled into an option values object. Added
3872 "argv", "usage", "description", and "option_spec" parameters for
3873 command-line support.
3874 - Added ``Publisher.process_command_line()`` and ``.set_options()``
3876 - Reworked I/O model for ``docutils.io`` wrappers.
3877 - Updated ``Publisher.set_options()``; now returns option values
3879 - Added support for configuration files (/etc/docutils.conf,
3880 ./docutils.conf, ~/.docutils).
3881 - Added ``Publisher.setup_option_parser()``.
3882 - Added default usage message and description.
3884 * docutils/frontend.py: Added to project; support for front-end
3885 (command-line) scripts. Option specifications may be augmented by
3886 components. Requires Optik (http://optik.sourceforge.net/) for option
3887 processing (installed locally as docutils/optik.py).
3889 * docutils/io.py: Added to project; uniform API for a variety of input
3892 * docutils/nodes.py:
3894 - Added ``TreeCopyVisitor`` class.
3895 - Added a ``copy`` method to ``Node`` and subclasses.
3896 - Added a ``SkipDeparture`` exception for visitors.
3897 - Renamed ``TreePruningException`` from ``VisitorException``.
3898 - Added docstrings to ``TreePruningException``, subclasses, and
3900 - Improved docstrings.
3901 - Added ``SparseNodeVisitor``, refined ``NodeVisitor``.
3902 - Moved ``utils.id()`` to ``nodes.make_id()`` to avoid circular
3904 - Added ``decoration``, ``header``, and ``footer`` node classes, and
3905 ``PreDecorative`` mixin.
3906 - Reworked the name/id bookkeeping; to ``document``, removed
3907 ``explicit_targets`` and ``implicit_targets`` attributes, added
3908 ``nametypes`` attribute and ``set_name_id_map`` method.
3909 - Added ``NodeFound`` exception, for use with ``NodeVisitor``
3911 - Added ``document.has_name()`` method.
3912 - Fixed DOM generation for list-attributes.
3913 - Added category class ``Labeled`` (used by footnotes & citations).
3914 - Added ``Element.set_class()`` method (sets "class" attribute).
3916 * docutils/optik.py: Added to project. Combined from the Optik
3917 package, with added option groups and other modifications. The use
3918 of this module is probably only temporary.
3920 * docutils/statemachine.py:
3922 - Added ``runtime_init`` method to ``StateMachine`` and ``State``.
3923 - Added underscores to improve many awkward names.
3924 - In ``string2lines()``, changed whitespace normalizing translation
3925 table to regexp; restores Python 2.0 compatibility with Unicode.
3927 * docutils/urischemes.py:
3929 - Filled in some descriptions.
3930 - Added "shttp" scheme.
3932 * docutils/utils.py:
3934 - Added ``clean_rcs_keywords`` function (moved from
3935 docutils/transforms/frontmatter.py
3936 ``DocInfo.filter_rcs_keywords``).
3937 - Added underscores to improve many awkward names.
3938 - Changed names of Reporter's thresholds:
3939 warning_level -> report_level; error_level -> halt_level.
3940 - Moved ``utils.id()`` to ``nodes.make_id()``.
3941 - Added ``relative_path(source, target)``.
3943 * docutils/languages/de.py: German mappings; added to project. Thanks
3944 to Gunnar Schwant for the translations.
3946 * docutils/languages/en.py: Added "Dedication" bibliographic field
3949 * docutils/languages/sv.py: Swedish mappings; added to project by Adam
3952 * docutils/parsers/rst/states.py:
3954 - Added underscores to improve many awkward names.
3955 - Added RFC-2822 header support.
3956 - Extracted the inline parsing code from ``RSTState`` to a separate
3957 class, ``Inliner``, which will allow easy subclassing.
3958 - Made local bindings for ``memo`` container & often-used contents
3959 (reduces code complexity a lot). See ``RSTState.runtime_init()``.
3960 - ``RSTState.parent`` replaces ``RSTState.statemachine.node``.
3961 - Added ``MarkupMismatch`` exception; for late corrections.
3962 - Added ``-/:`` characters to inline markup's start string prefix,
3963 ``/`` to end string suffix.
3964 - Fixed a footnote bug.
3965 - Fixed a bug with literal blocks.
3966 - Applied patch from Simon Budig: simplified regexps with symbolic
3967 names, removed ``Inliner.groups`` and ``Body.explicit.groups``.
3968 - Converted regexps from ``'%s' % var`` to ``'%(var)s' % locals()``.
3969 - Fixed a bug in ``Inliner.interpreted_or_phrase_ref()``.
3970 - Allowed non-ASCII in "simple names" (directive names, field names,
3972 - Converted ``Inliner.patterns.initial`` to be dynamically built
3973 from parts with ``build_regexp()`` function.
3974 - Changed ``Inliner.inline_target`` to ``.inline_internal_target``.
3975 - Updated docstrings.
3976 - Changed "table" to "grid_table"; added "simple_table" support.
3978 * docutils/parsers/rst/tableparser.py:
3980 - Changed ``TableParser`` to ``GridTableParser``.
3981 - Added ``SimpleTableParser``.
3982 - Refactored naming.
3984 * docutils/parsers/rst/directives/__init__.py: Added "en" (English) as
3985 a fallback language for directive names.
3987 * docutils/parsers/rst/directives/html.py: Changed the ``meta``
3988 directive to use a ``pending`` element, used only by HTML writers.
3990 * docutils/parsers/rst/directives/parts.py: Renamed from
3993 - Added "backlinks" attribute to "contents" directive.
3995 * docutils/parsers/rst/languages/sv.py: Swedish mappings; added to
3996 project by Adam Chodorowski.
3998 * docutils/readers/__init__.py: Gave Readers more control over
3999 choosing and instantiating Parsers.
4001 * docutils/readers/pep.py: Added to project; for PEP processing.
4003 * docutils/transforms/__init__.py: ``Transform.__init__()`` now
4004 requires a ``component`` parameter.
4006 * docutils/transforms/components.py: Added to project; transforms
4007 related to Docutils components.
4009 * docutils/transforms/frontmatter.py:
4011 - In ``DocInfo.extract_authors``, check for a single "author" in an
4012 "authors" group, and convert it to a single "author" element.
4013 - Added support for "Dedication" and generic bibliographic fields.
4015 * docutils/transforms/peps.py: Added to project; PEP-specific.
4017 * docutils/transforms/parts.py: Renamed from old components.py.
4019 - Added filter for ``Contents``, to use alt-text for inline images,
4020 and to remove inline markup that doesn't make sense in the ToC.
4021 - Added "name" attribute to TOC topic depending on its title.
4022 - Added support for optional TOC backlinks.
4024 * docutils/transforms/references.py: Fixed indirect target resolution
4025 in ``Hyperlinks`` transform.
4027 * docutils/transforms/universal.py:
4029 - Changed ``Messages`` transform to properly filter out system
4030 messages below the warning threshold.
4031 - Added ``Decorations`` transform (support for ``--generator``,
4032 ``--date``, ``--time``, ``--source-link`` options).
4034 * docutils/writers/__init__.py: Added "pdf" alias in anticipation of
4035 Engelbert Gruber's PDF writer.
4037 * docutils/writers/html4css1.py:
4039 - Made XHTML-compatible (switched to lowercase element & attribute
4040 names; empty tag format).
4041 - Escape double-dashes in comment text.
4042 - Improved boilerplate & modularity of output.
4043 - Exposed modular output in Writer class.
4044 - Added a "generator" meta tag to <head>.
4045 - Added support for the ``--stylesheet`` option.
4046 - Added support for ``decoration``, ``header``, and ``footer``
4048 - In ``HTMLTranslator.attval()``, changed whitespace normalizing
4049 translation table to regexp; restores Python 2.0 compatibility
4051 - Added the translator class as instance variable to the Writer, to
4052 make it easily subclassable.
4053 - Improved option list spacing (thanks to Richard Jones).
4054 - Modified field list output.
4055 - Added backlinks to footnotes & citations.
4056 - Added percentage widths to "<col>" tags (from colspec).
4057 - Option lists: "<code>" changed to "<kbd>", ``option_argument``
4058 "<span>" changed to "<var>".
4059 - Inline literals: "<code>" changed to "<tt>".
4060 - Many changes to optimize vertical space: compact simple lists etc.
4061 - Add a command-line options & directive attributes to control TOC
4062 and footnote/citation backlinks.
4063 - Added support for optional footnote/citation backlinks.
4064 - Added support for generic bibliographic fields.
4065 - Identify backrefs.
4066 - Relative URLs for stylesheet links.
4068 * docutils/writers/pep_html.py: Added to project; HTML Writer for
4069 PEPs (subclass of ``html4css1.Writer``).
4071 * docutils/writers/pseudoxml.py: Renamed from pprint.py.
4073 * docutils/writers/docutils_xml.py: Added to project; trivial writer
4074 of the Docutils internal doctree in XML.
4076 * docs/tools.txt: "Docutils Front-End Tools", added to project.
4080 - Changed the title to "The Docutils Document Tree".
4081 - Added "Hyperlink Bookkeeping" section.
4083 * spec/docutils.dtd:
4085 - Added ``decoration``, ``header``, and ``footer`` elements.
4086 - Brought ``interpreted`` element in line with the parser: changed
4087 attribute "type" to "role", added "position".
4088 - Added support for generic bibliographic fields.
4090 * spec/notes.txt: Continual updates. Added "Project Policies".
4092 * spec/pep-0256.txt: Updated. Added "Roadmap to the Doctring PEPs"
4095 * spec/pep-0257.txt: Clarified prohibition of signature repetition.
4097 * spec/pep-0258.txt: Updated. Added text from pysource.txt and
4098 mailing list discussions.
4100 * spec/pep-0287.txt:
4102 - Renamed to "reStructuredText Docstring Format".
4104 - Reworked Q&A as an enumerated list.
4105 - Converted to reStructuredText format.
4107 * spec/pysource.dtd:
4109 - Reworked structural elements, incorporating ideas from Tony Ibbs.
4111 * spec/pysource.txt: Removed from project. Moved much of its contents
4114 * spec/rst/alternatives.txt:
4116 - Expanded auto-enumerated list idea; thanks to Fred Bremmer.
4117 - Added "Inline External Targets" section.
4119 * spec/rst/directives.txt:
4121 - Added "backlinks" attribute to "contents" directive.
4123 * spec/rst/problems.txt:
4125 - Updated the Enumerated List Markup discussion.
4126 - Added new alternative table markup syntaxes.
4128 * spec/rst/reStructuredText.txt:
4130 - Clarified field list usage.
4131 - Updated enumerated list description.
4132 - Clarified purpose of directives.
4133 - Added ``-/:`` characters to inline markup's start string prefix,
4134 ``/`` to end string suffix.
4135 - Updated "Authors" bibliographic field behavior.
4136 - Changed "inline hyperlink targets" to "inline internal targets".
4137 - Added "simple table" syntax to supplement the existing but
4138 newly-renamed "grid tables".
4139 - Added cautions for anonymous hyperlink use.
4140 - Added "Dedication" and generic bibliographic fields.
4142 * test: Made test modules standalone (subdirectories became packages).
4144 * test/DocutilsTestSupport.py:
4146 - Added support for PEP extensions to reStructuredText.
4147 - Added support for simple tables.
4148 - Refactored naming.
4150 * test/package_unittest.py: Renamed from UnitTestFolder.py.
4152 - Now supports true packages containing test modules
4153 (``__init__.py`` files required); fixes duplicate module name bug.
4155 * test/test_pep/: Subpackage added to project; PEP testing.
4157 * test/test_rst/test_SimpleTableParser.py: Added to project.
4161 - Updated html.py and publish.py front-end tools to use the new
4162 command-line processing facilities of ``docutils.frontend``
4163 (exposed in ``docutils.core.Publisher``), reducing each to just a
4165 - Added ``locale.setlocale()`` calls to front-end tools.
4167 * tools/buildhtml.py: Added to project; batch-generates .html from all
4168 the .txt files in directories and subdirectories.
4170 * tools/default.css:
4172 - Added support for ``header`` and ``footer`` elements.
4173 - Added styles for "Dedication" topics (biblio fields).
4175 * tools/docutils.conf: A configuration file; added to project.
4177 * tools/docutils-xml.py: Added to project.
4179 * tools/pep.py: Added to project; PEP to HTML front-end tool.
4181 * tools/pep-html-template: Added to project.
4183 * tools/pep2html.py: Added to project from Python (nondist/peps).
4184 Added support for Docutils (reStructuredText PEPs).
4186 * tools/quicktest.py:
4188 - Added the ``--attributes`` option, hacked a bit.
4189 - Added a second command-line argument (output file); cleaned up.
4191 * tools/stylesheets/: Subdirectory added to project.
4193 * tools/stylesheets/pep.css: Added to project; stylesheet for PEPs.
4196 Release 0.1 (2002-04-20)
4197 ========================
4199 This is the first release of Docutils, merged from the now inactive
4200 reStructuredText__ and `Docstring Processing System`__ projects. For
4201 the pre-Docutils history, see the `reStructuredText HISTORY`__ and the
4202 `DPS HISTORY`__ files.
4204 __ http://structuredtext.sourceforge.net/
4205 __ http://docstring.sourceforge.net/
4206 __ http://structuredtext.sourceforge.net/HISTORY.html
4207 __ http://docstring.sourceforge.net/HISTORY.html
4209 General changes: renamed 'dps' package to 'docutils'; renamed
4210 'restructuredtext' subpackage to 'rst'; merged the codebases; merged
4211 the test suites (reStructuredText's test/test_states renamed to
4212 test/test_rst); and all modifications required to make it all work.
4214 * docutils/parsers/rst/states.py:
4216 - Improved diagnostic system messages for missing blank lines.
4217 - Fixed substitution_reference bug.
4222 .. _RELEASE-NOTES: RELEASE-NOTES.html
4223 .. _`_config_files`: docs/user/config.html#config-files
4224 .. _auto_id_prefix: docs/user/config.html#auto-id-prefix
4226 .. _detailed: docs/user/config.html#detailed
4227 .. _docutils_footnotes: docs/user/config.html#docutils-footnotes
4228 .. _dump_settings: docs/user/config.html#dump-settings
4229 .. _embed_images: docs/user/config.html#embed-images
4230 .. _embed_stylesheet: docs/user/config.html#embed-stylesheet
4231 .. _figure_footnotes: docs/user/config.html#figure-footnotes
4232 .. _file_insertion_enabled: docs/user/config.html#file-insertion-enabled
4233 .. _graphicx_option: docs/user/config.html#graphicx-option
4234 .. _hidden_controls: docs/user/config.html#hidden-controls
4235 .. _html_writer: docs/user/config.html#html-writer
4236 .. _hyperref_options: docs/user/config.html#hyperref-options
4237 .. _id_prefix: docs/user/config.html#id-prefix
4238 .. _ignore: docs/user/config.html#ignore
4239 .. _image_loading: docs/user/config.html#image-loading
4240 .. _indents: docs/user/config.html#indents
4241 .. _initial_header_level: docs/user/config.html#initial-header-level
4242 .. _input_encoding: docs/user/config.html#input-encoding
4243 .. _input_encoding_error_handler: docs/user/config.html#input-encoding-error-handler
4244 .. _language: docs/user/config.html#language
4245 .. _latex_preamble: docs/user/config.html#latex-preamble
4246 .. _legacy_class_functions: docs/user/config.html#legacy-class-functions
4247 .. _legacy_column_widths: docs/user/config.html#legacy-column-widths
4248 .. _literal_block_env: docs/user/config.html#literal-block-env
4249 .. _math_output: docs/user/config.html#math-output
4250 .. _output: docs/user/config.html#output
4251 .. _output_encoding: docs/user/config.html#output-encoding
4252 .. _raw_enabled: docs/user/config.html#raw-enabled
4253 .. _reference_label: docs/user/config.html#reference-label
4254 .. _smart_quotes: docs/user/config.html#smart-quotes
4255 .. _strip_classes: docs/user/config.html#strip-classes
4256 .. _strip_elements_with_classes: docs/user/config.html#strip-elements-with-classes
4257 .. _stylesheet: docs/user/config.html#stylesheet
4258 .. _stylesheet_dirs: docs/user/config.html#stylesheet-dirs
4259 .. _stylesheet_path: docs/user/config.html#stylesheet-path
4260 .. _syntax_highlight: docs/user/config.html#syntax-highlight
4261 .. _table_style: docs/user/config.html#table-style
4262 .. _traceback: docs/user/config.html#traceback
4263 .. _use_bibtex: docs/user/config.html#use-bibtex
4264 .. _use_latex_abstract: docs/user/config.html#use-latex-abstract
4265 .. _use_latex_footnotes: docs/user/config.html#use-latex-footnotes
4266 .. _use_latex_toc: docs/user/config.html#use-latex-toc
4267 .. _view_mode: docs/user/config.html#view-mode
4273 indent-tabs-mode: nil
4274 sentence-end-double-space: t