[go: up one dir, main page]

Menu

Code Commit Log


Commit Date  
[r9973] by grubert

rename .txt to .rst (left over)

2024-10-26 15:14:09 Tree
[r9972] by grubert

rename .txt to .rst (left over)

2024-10-26 15:12:02 Tree
[r9971] by grubert

move .txt to .rst (left over)

2024-10-26 15:09:51 Tree
[r9970] by milde

Fix recursion in `nodes.Element.get_language_code()`.

Because of a typo, `Element.get_language_code()` did not find language
tags in parent elements but just return the fallback value.

Thanks to Marcello Perathoner for the report.
http://permalink.gmane.org/gmane.text.docutils.devel/10544

2024-10-26 09:15:18 Tree
[r9969] by milde

Condense "details" lists in Document Tree documentation.

More concise style in the sections listing doctree element details.
(Reduce boilerplate text and repetitions,
use phrases instead of full sentences if applicable.)

2024-10-25 22:46:34 Tree
[r9968] by milde

Doctree documentation revision.

Update documentation regarding the "colwidth" attribute handling.
and the included `Exchange Table Model`.

Unify name use.

Revise/fix hyperlinks.

Improve wording/formatting.

Correct description of the "names" doctree element attribute:

Under specific circumstances, an element may have both,
``names`` and ``dupnames`` attributes.
This is intentional to provide a means to solve conflicts in
implicit hyperlink targets (e.g. two section headings with similar title),
e.g. ::

My Title
--------

.. _my title:

my title
--------

`My title`_ links to the second section.

2024-10-25 17:45:15 Tree
[r9967] by milde

Start reconciling "colwidth" attribute definition and use.

First, backwards compatible changes get the handling of the
`<colspec>` element's "colwidth" attribute in line with the
definition in the Exchange Table Model.

The "colwidth" attribute is defined in the "Exchange Table Model"
as either a *proportional measure* or a *fixed measure*.
Currently, Docutils supports only unitless values and interpets them
as proportional measures while the Exchange Table Model interprets
unitless values as fixed measures with default unit “pt”!

The new optional argument "unit_pattern" for `nodes.parse_measure()`
allows configuring what is recognized as a unit.

The new validation function `nodes.validate_proportional()`
for the "colwidth" attribute also accepts conformant values like
"5.2*" (for 5.2 times the "unit proportion").
For backwards compatibility reasons, the attribute is still stored
as numerical value in Python doctree element instances.

New auxiliary method `nodes.colspec.propwith()`:
returns the "colwidth" attribute as number if it is a
proportional measure.

Announce future changes in the RELEASE_NOTES

Add/modify test cases.

2024-10-24 21:05:01 Tree
[r9966] by milde

Review conditional test cases.

Skip tests instead of deleting samples from `totests` dictionary if
requirements for the tested feature are missing.
This way we have a record in the test output.

Reformat a skip decorator and "assertRaises" block in test_get_parser_class.py.

2024-10-22 21:41:26 Tree
[r9965] by milde

Skip functional test that requires PIL if PIL is absent.

For Docutils, PIL is a recommendation, no requirement.

It is, however, required for the extraction of the image size
from an image file and a warning is written if it it missing.
This makes the output differ from the "expected" sample on
a functional test where the "scale" option of the "image"
directive is used.

The "length_units_html5" functional test is intended to provide
an example of the length unit support for visual inspection with
a HTML browser. There are additional unit tests for the
"scale" option with and without PIL, so we can safely skip
the functional test if PIL is missing on a system.

2024-10-22 21:41:16 Tree
[r9964] by grubert

update user/manpage

2024-10-22 16:51:31 Tree
Older >