Activity for Günter Milde

  • Günter Milde Günter Milde modified ticket #514

    publish_file no longer works with "BytesIO-like" objects.

  • Günter Milde Günter Milde posted a comment on ticket #514

    Fixed in Docutils 0.22.4. Thank you for analysis and report.

  • Günter Milde Günter Milde committed [r10274] on Code

    Finalise documentation of changes for 0.22.4.

  • Günter Milde Günter Milde modified a comment on ticket #516

    Thank you for the information. According to the IANA entry, Benja Fallenstein registered the "rst" MIME type because: The registrant just happened to have need of a registered media type for it. --- https://www.iana.org/assignments/media-types/text/prs.fallenstein.rst So the actual error is not the quoted part of the FAQ answer, but ... there is no registered MIME type for reStructuredText, .... It seems that with the switch of the source file extension from ".txt" to ".rst" in August 2024 some applications...

  • Günter Milde Günter Milde committed [r10273] on Code

    More documentation fixes.

  • Günter Milde Günter Milde posted a comment on ticket #101

    Suggestion: Introduce a new Doctree element <line_break> in Docutils 1.0 add "br" to docutils.dtd and document it in https://docutils.sourceforge.io/docs/ref/doctree.html add new class docutils.nodes.line_break add visit_line_break() and depart_line_break() methods to Docutils writers. New standard directive line-break. Similar to "replace", "date", and "unicode", this directive may only be used in substitution definitions, e.g. .. |br| .. line-break:: I want a line break\ |br| before this text....

  • Günter Milde Günter Milde posted a comment on ticket #516

    Thank you for the information. According to the IANA entry, Benja Fallenstein registered the "rst" MIME type because: The registrant just happened to have need of a registered media type for it. --- https://www.iana.org/assignments/media-types/text/prs.fallenstein.rst So the actual error is not the quoted part of the FAQ answer, but ... there is no registered MIME type for reStructuredText, .... It seems that with the switch of the source file extending from ".txt" to ".rst" in August 2024 some applications...

  • Günter Milde Günter Milde modified ticket #515

    Wrong statement in "reStructuredText Specification"

  • Günter Milde Günter Milde posted a comment on ticket #515

    Fixed in [r10271].

  • Günter Milde Günter Milde committed [r10272] on Code

    Documentation update

  • Günter Milde Günter Milde committed [r10271] on Code

    Fix statement in rST Specification example.

  • Günter Milde Günter Milde modified a comment on ticket #66

    See also the discussion in Sphinx issue #8709. Use case: Changelogs of "pip" and "black" use version numbers as section titles: the auto-generated IDs are not stable but may change if a new section is inserted :( Workaround: use explicit targets starting with a letter like "v25.1.1" (this is what "pip" does). This works in Sphinx. In Docutils, the "self-link" uses ids[0] which is the auto-generated one. This will be solved in Docutils 0.23.

  • Günter Milde Günter Milde committed [r10270] on Code

    New value "auto" for "initial_header_level" config setting.

  • Günter Milde Günter Milde committed [r10269] on Code

    Announce upcoming changes.

  • Günter Milde Günter Milde committed [r10268] on Code

    More detailled description of the restrictions on transition placement.

  • Günter Milde Günter Milde posted a comment on ticket #515

    Proposed patch: -- a/docutils/docs/ref/rst/restructuredtext.rst +++ b/docutils/docs/ref/rst/restructuredtext.rst @@ -179,7 +179,10 @@ Here are examples of `body elements`_: - Footnotes_:: .. [1] A footnote contains body elements, consistently - indented by at least 3 spaces. + indented by at least 1 space. + + The least indented line sets the reference + indentation, so this is a nested block quote. - Citations_:: The attached patch also adds some more examples and moves the paragraph about paragraph...

  • Günter Milde Günter Milde created ticket #515

    Wrong statement in "reStructuredText Specification"

  • Günter Milde Günter Milde committed [r10267] on Code

    docutils.io.FileInput: ensure read() returns a `str`.

  • Günter Milde Günter Milde modified ticket #514

    publish_file no longer works with "BytesIO-like" objects.

  • Günter Milde Günter Milde posted a comment on ticket #514

    Thank you for the report. The issue is fixed in [r10267].

  • Günter Milde Günter Milde modified ticket #128

    combining unicode chars count in grid tables

  • Günter Milde Günter Milde posted a comment on ticket #128

    Fixed in Docutils 0.22.3.

  • Günter Milde Günter Milde modified ticket #512

    rst2html incorrectly converts tables with Combining Diacritical Marks into HTML

  • Günter Milde Günter Milde posted a comment on ticket #512

    Fixed in Docutils 0.22.3.

  • Günter Milde Günter Milde committed [r10266] on Code

    Documentation update and fixes.

  • Günter Milde Günter Milde committed [r10265] on Code

    Simplify `ClassAttribute` transform.

  • Günter Milde Günter Milde committed [r10264] on Code

    Fixes for the "responsive" CSS style sheet.

  • Günter Milde Günter Milde committed [r10263] on Code

    Future-proof the test for valid parents of topics or sidebars.

  • Günter Milde Günter Milde committed [r10257] on Code

    Small edits in description of recent changes.

  • Günter Milde Günter Milde committed [r10256] on Code

    Relax test for valid parents of topics or sidebars.

  • Günter Milde Günter Milde committed [r10255] on Code

    Documentation update/fixes.

  • Günter Milde Günter Milde committed [r10254] on Code

    Better error message for substitution definitions.

  • Günter Milde Günter Milde modified a comment on ticket #200

    Thank you for the contribution. Unfortunately, we cannot include the patch without a change in the Docutils specification, https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#standalone-hyperlinks, which limits the supported URI schemes to the ones listed in the Official IANA Registry of URI Schemes and the W3C's Retired Index of WWW Addressing Schemes. While I don't see a "gemini" URI scheme as a particular problematic case, adding non-registered schemes should be done with special...

  • Günter Milde Günter Milde modified ticket #215

    Fix Unknown target name warning in roles.rst

  • Günter Milde Günter Milde posted a comment on ticket #215

    Fixed in [r10249] (with different wording). Thanks for finding the broken link and the patch.

  • Günter Milde Günter Milde committed [r10253] on Code

    Documentation update/fixes.

  • Günter Milde Günter Milde modified ticket #512

    rst2html incorrectly converts tables with Combining Diacritical Marks into HTML

  • Günter Milde Günter Milde posted a comment on ticket #512

    Fixed in [r10251].

  • Günter Milde Günter Milde modified ticket #128

    combining unicode chars count in grid tables

  • Günter Milde Günter Milde posted a comment on ticket #128

    Fixed, now also for grid tables, in [r10251].

  • Günter Milde Günter Milde committed [r10251] on Code

    rST parser: allow for combining characters in grid tables.

  • Günter Milde Günter Milde committed [r10250] on Code

    Simplify `utils.column_indices()`.

  • Günter Milde Günter Milde modified a comment on ticket #128

    Even when adjusting the grid, the parser goes wrong. See [bugs:#512].

  • Günter Milde Günter Milde modified ticket #513

    error installing v0.22.1 on MacOS

  • Günter Milde Günter Milde posted a comment on ticket #513

    Fixed with release 0.22.2. Thank you for report, analysis, and testing.

  • Günter Milde Günter Milde committed [r10249] on Code

    Documentation fixes.

  • Günter Milde Günter Milde posted a comment on ticket #513

    Docutils 0.22.2 is out (without the *.swp file). @daeho-ro: Could you please try whether this solves the install problem?

  • Günter Milde Günter Milde modified a comment on ticket #513

    The .__init__.py.swp file should definitely not be there... ... it seems this is not just another problem but the culprit.

  • Günter Milde Günter Milde modified a comment on ticket #513

    Thanks for the additional info. It seems that install on MacOS (or just homebrew or snakemake, ...) trips over the spurious file while with Python's standard "pip" installment program or installing "by hand" the spurious file is just ignored. We will release a new version without the spurious file ASAP.

  • Günter Milde Günter Milde modified ticket #513

    error installing v0.22.1 on MacOS

  • Günter Milde Günter Milde posted a comment on ticket #513

    It seems that install on MacOS (or just homebrew or snakemake, ...) trip over the spurious file while with Python's standard "pip" installment program or installing "by hand" the spurious file is just ignored. We will release a new version without the spurious file ASAP.

  • Günter Milde Günter Milde modified a comment on ticket #513

    I cannot reproduce the install problem here. Installing Docutils 0.22.1 with pip into a new created venv worked without problem, despite the spurious file. What is the OS? Which command was used for the install? Was there any output after Here's the output:? If you used pip, run it with increased verbosity and share the details: pip install <package-name> --verbose You may consider removing the spurious file /docutils-0.22.1/docutils/.__init__.py.swp from the wheel or tar.gz archive (or manually...

  • Günter Milde Günter Milde posted a comment on ticket #513

    I cannot reproduce the install problem here. Installing Docutils 0.22.1 with pip into a new created venv worked without problem, despite the spurious file. What is the OS? Which command was used for the install? If you used pip, run it with increased verbosity and share the details: pip install <package-name> --verbose You may consider removing the spurious file /docutils-0.22.1/docutils/.__init__.py.swp from the wheel or tar.gz archive (or manually unpacking and then removing) and trying again.

  • Günter Milde Günter Milde modified ticket #512

    rst2html incorrectly converts tables with Combining Diacritical Marks into HTML

  • Günter Milde Günter Milde posted a comment on ticket #513

    The .__init__.py.swp file should definitely not be there.

  • Günter Milde Günter Milde modified ticket #214

    Give better messages on malformed tables

  • Günter Milde Günter Milde posted a comment on ticket #214

    Fixed in Docutils 0.22.1. Thanks again.

  • Günter Milde Günter Milde modified ticket #493

    Test failure on Windows with embedded images

  • Günter Milde Günter Milde modified ticket #503

    LaTeX writer fails to generate "labels" for some elements with "ids".

  • Günter Milde Günter Milde modified ticket #503

    LaTeX writer fails to generate "labels" for some elements with "ids".

  • Günter Milde Günter Milde posted a comment on ticket #503

    Fixed in Docutils 0.22.1.

  • Günter Milde Günter Milde modified ticket #504

    errors for malformed tables do not indicate what the error is

  • Günter Milde Günter Milde posted a comment on ticket #504

    Fixed in Docutils 0.22.1. Thanks again!

  • Günter Milde Günter Milde modified ticket #508

    qemu build problem after docutils update to 0.22

  • Günter Milde Günter Milde posted a comment on ticket #508

    Fixed in Docutils 0.22.1. Please reopen if there are still problems. Thank you for reporting and tests.

  • Günter Milde Günter Milde modified ticket #509

    regression with docutils 0.22: unsupported operand type(s) for +: 'NoneType' and 'list'

  • Günter Milde Günter Milde posted a comment on ticket #509

    Fixed in Docutils 0.22.1. Please reopen if there are still problems. Thank you for reporting and tests.

  • Günter Milde Günter Milde modified ticket #510

    Release date for 0.22 is in the future

  • Günter Milde Günter Milde posted a comment on ticket #510

    Fixed in Docutils 0.22.1. Thank you for reporting.

  • Günter Milde Günter Milde modified a comment on ticket #156

    So I can think of any suitable tests, what would your definiton of safe be here? you should . there was a discussion on docutils lists recently (1y) on code injection some general unittests/functional tests are mandatory (was in aegis SCM) considerations remarks for the security documentation ?

  • Günter Milde Günter Milde modified a comment on ticket #156

    things are speedier if there is documentation and tests (i assume you did test the patch so why not pass this on) in the patch. the real hard thing for me to check is ... is this safe ... loading directives into docutils any thoughts help ?

  • Günter Milde Günter Milde modified a comment on ticket #156

    Supersedes [patches:#17].

  • Günter Milde Günter Milde posted a comment on ticket #512

    Thank you for the report. Combining characters in grid tables are known to be problematic. See [bugs:#128] Mind, that the intended behaviour would be to get the "expected" result with the input +---+ | ç̌ | +---+ For simple tables, you can use the simple table syntax, where this problem is fixed: = == ç̌ OK = ==

  • Günter Milde Günter Milde posted a comment on ticket #128

    Even when adjusting the grid, the parser goes wrong. See [bugs:512].

  • Günter Milde Günter Milde modified ticket #128

    combining unicode chars count in grid tables

  • Günter Milde Günter Milde committed [r10238] on Code

    Announce change for label writing in latex writer.

  • Günter Milde Günter Milde committed [r10237] on Code

    Document the `<target>` element.

  • Günter Milde Günter Milde posted a comment on ticket #508

    Thank you for testing. so it should be fine with Docutils 0.22.1.rc1.

  • Günter Milde Günter Milde posted a comment on ticket #509

    Please try with Docutils 0.22.1.rc1.

  • Günter Milde Günter Milde committed [r10232] on Code

    Documentation amendments.

  • Günter Milde Günter Milde posted a comment on ticket #511

    The remaining issue is a way to tell RSTState.nested_parse() that it shall use a new, separate title style hierarchy for section headings (similar to Sphinx nested_parse_to_nodes()).

  • Günter Milde Günter Milde posted a comment on ticket #511

    Applied in [r10229].

  • Günter Milde Günter Milde modified a comment on ticket #511

    Element after a section from nested parsing may be invalid. parsers.rst.RSTSTate.nested_parse() with match_titles=True (i.e. support for sections) leads to an invalid document tree, if the nested block contains a section but the element following the nested block is not a section. The structure model allows only a <section> as sibling after a <section>. An invalid doctree can be prevented if the following content is appended to the last nested section instead of its parent. The "nested" directive...

  • Günter Milde Günter Milde committed [r10231] on Code

    Small editorial changes.

  • Günter Milde Günter Milde committed [r10229] on Code

    rST parser: Use `section_level_offset` instead of `memo.section_level`.

  • Günter Milde Günter Milde posted a comment on ticket #511

    Commit [r10226] fixes the regeression in Sphinx. In order to correctly support sections in nested parsing, it reverts to using memo.section_level to keep record of the current section level. This is cumbersome and error prone because it needs to be updated with every switch of the current node. The attached patch implements an alternative: Store the difference between the intended start level of nested parsing and the number of parents of the base node in the new attribute section_level_offset. Use...

  • Günter Milde Günter Milde posted a comment on ticket #511

    The fix is implemented in [r10223].

  • Günter Milde Günter Milde modified ticket #511

    Problems with nested parsing and sections.

  • Günter Milde Günter Milde committed [r10228] on Code

    rST parser: simplifications, fixes, and improvements

  • Günter Milde Günter Milde modified ticket #509

    regression with docutils 0.22: unsupported operand type(s) for +: 'NoneType' and 'list'

  • Günter Milde Günter Milde posted a comment on ticket #509

    This should be fixed in [r10227]. Could you re-try?

  • Günter Milde Günter Milde modified ticket #508

    qemu build problem after docutils update to 0.22

  • Günter Milde Günter Milde posted a comment on ticket #508

    This should be fixed in [r10227]. Could you re-try?

  • Günter Milde Günter Milde committed [r10227] on Code

    Adjustments for nested_parse().

  • Günter Milde Günter Milde committed [r10226] on Code

    rST parser: restore backwards compatibility of nested parsing.

  • Günter Milde Günter Milde posted a comment on ticket #511

    Consider the use cases: a) A main document includes rST blocks from various different sources (other projects documentation, docstrings, ...). We cannot guarantee a consistent title style hierarchy across all inclusions and want to use a separate title style hierarchy in the included blocks. b) A main document includes chapters from other source files of the same project after an introductory section. The project uses consistent title styles in all files. We want a document-wide title style hierarchy,...

  • Günter Milde Günter Milde modified a comment on ticket #511

    assuming the included document. is complete, has a consistent title hierarchy means first title-style is top, next is 2nd asf standard use case is to include the document at a position where it's top level is one below the current in the including document e.g. section l1 ========== section l2 ---------- .. included doc section l3 ========== section l4 ---------- .. including doc section l2 ---------- is there a use case for including and setting a different level, absolute or relative ?

  • Günter Milde Günter Milde modified a comment on ticket #511

    assuming the included document. is complete, has a consistent title hierarchy means first title-style is top, next is 2nd asf standard use case is to include the document at a position where it's top level is one below the current in the including document e.g. section l1 ========== section l2 .. included doc section l3 ========== section l4 ---------- .. including doc section l2 is there a use case for including and setting a different level, absolute or relative ?

  • Günter Milde Günter Milde modified ticket #511

    Problems with nested parsing and sections.

  • Günter Milde Günter Milde posted a comment on ticket #511

    An alternative idea: nested parse uses the document-wide title style hierarchy if the "node" argument is left at its default value. The result of the nested parsing is directly added to the document (at the "current" node). Sections are appended according to their level.

1 >