[go: up one dir, main page]

Menu

Commit [r9936]  Maximize  Restore  History

Use `nodes.parse_measure()` in rST directive option conversion.

Simplify `parsers.rst.directives.get_measure()` by using
`nodes.parse_measure()`.

Sort the list of supported length units in the order used in the
rST specification (based on the CSS specification).

Update and extend the lenght value handling tests.
Clarify and test behaviour:

* case of length units is preserved (in contrast to CSS)
* the restriction of supported units is a rST feature
while the Docutils Doctree allows any run of ASCII letters + µ
or a percent sign as units on attributes with value type "measure".

milde 2024-09-20

changed /trunk/docutils/docutils/parsers/rst/directives/__init__.py
changed /trunk/docutils/test/test_nodes.py
changed /trunk/docutils/test/test_parsers/test_docutils_xml/test_parse_element.py
changed /trunk/docutils/test/test_parsers/test_rst/test_directives/test_images.py