[go: up one dir, main page]

Menu

Code Commit Log


Commit Date  
[r9975] by milde

Small fix for target-highlight in "responsive" stylesheet (HTML5).

Highlight complete citation, not only the label.

2024-10-28 22:19:10 Tree
[r9974] by milde

Wrap setting the default "locale" in try/except, report locale.Error as warning.

Docutils command line tools use `locale.setlocale()` to set the locale to the user's
default locale. This may lead to a `locale.Error` if there are problems in the
systems locale setup. As locale settings are not critical for the working of
Docutils (but may affect the output in certain instances), we now clear the
exception and report a WARNING.

Fixes bug #495.

2024-10-28 22:18:58 Tree
[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
Older >