Activity for Docutils: Documentation Utilities

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

    The author/change controller writes in the registration: If anybody more intimately involved with ReStructuredText wants to take it over, it will be surrendered gladly. We may consider taking over as "change controller" and keep the name as text/prs.fallenstein.rst (never touch a running system), change the name to text/prs.docutils.rst (simple registration in the Personal Registration Tree), or try to register as text/rst (official registry, requires publication of an RFC)

  • Felix Fontein Felix Fontein posted a comment on ticket #517

    Thanks for fixing this, I can confirm that with the latest commit it works fine (except tables lists, as you mentioned - but these are not very common, at least the ones with code blocks in them :) )! I'm using the line numbers to try to identify the exact position of the code block (including its column offset), mainly for two use-cases: 1. Being able to show more precise error locations when linting code in code blocks; 2. To be able to replace code block content's with output (extracted from running...

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

    Small documentation updates.

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

    Doctree documentation: Include entity definitions from ``docutils.dtd``.

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

    Use name of custom role based on "code" as its language default.

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

    nodes.Element.findall() now accepts also a tuple of types as condition.

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

    Line numbers are still wrong in the nested parsing of cell content in "CSV tables". Generally, source line numbers are only intended for ease of debugging and should not be relied upon too heavily.

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

    Line numbers are still wrong in the nested parsing of cell content in "CSV tables". Generally, the line numbers are only intended for ease of debugging and should not be relied upon too heavily.

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

    The fix is out. Sorry for the confusion: I intended to publish 2 commits with one git svn dcommit but there was a timeout after the first :(

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

    content_offset in directives inside grid/simple tables are off

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

    The fix is out. Sorry for the confusion: I intended to publish 2 commits with one git svn dcommit but only the first came through.

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

    Thanks for the test script. The attached variant was used to explore the problem and find the spot that needs to be changed. The upcoming commit [r10280] will fix the problem (and also wrong line numbers in some system messages for markup errors inside table cells.

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

    Move LaTeX styling for "html-roles" definitions to docutils.sty.

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

    LaTeX writer: don't write labels for implicit IDs that are not referenced.

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

    More relaxed "include" directive.

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

    Remove obsolete method in CSVTable directive class.

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

    Bump version to 0.23b.dev

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

    Fix "input_offset" in tables.

  • Felix Fontein Felix Fontein posted a comment on ticket #517

    Oh sorry, I missed the part on "upcoming commit"... I thought the commit you added earlier today (r10279) already fixed the issue...

  • Felix Fontein Felix Fontein posted a comment on ticket #517

    Thanks for looking into this! Unfortunately with your patch, the result of my test script seems unchanged. This change fixes the issue for me, but I'm not sure whether it is correct: --- a/docutils/docutils/parsers/rst/states.py +++ b/docutils/docutils/parsers/rst/states.py @@ -1950,7 +1950,7 @@ def build_table_row(self, rowdata, tableline): entry = nodes.entry(**attributes) row += entry if ''.join(cellblock): - self.nested_parse(cellblock, input_offset=tableline+offset, + self.nested_parse(cellblock,...

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

    Thanks for the test script. The attached variant was used to explore the problem and find the spot that needs to be changed. The upcoming commit [r10280] will fix the problem (and also wrong line numbers in some system messages for markup errors inside table cells.

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

    content_offset in directives inside grid/simple tables are off

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

    Thanks for the test script. The attached variant was used to explore the problem and find the spot that needs to be changed. Commit [r10280] fixes the problem (and also wrong line numbers in some system messages for markup errors inside table cells.

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

    content_offset in directives inside grid/simple tables are off

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

    Thanks for the test script. The attached variant was used to explore the problem and find the spot that needs to be changed. Commit [r10279] fixes the problem (and also wrong line numbers in some system messages for markup errors inside table cells.

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

    Add internal source and line attributes to "rubric" and "table" nodes.

  • Felix Fontein Felix Fontein posted a comment on ticket #517

    I've attached a small script which shows the problem. It shows the line indicated by self.content_offset surrounded by some source lines for every code block. Like here you can see that content_offset is correct outside a table: 1 '' 2 '.. code-block:: yaml' 3 '' -> 4 ' - foo' 5 '' 6 'content_offset is off by 1:' 7 '' And here it is off by one when inside a grid table: 9 '| .. code-block:: yaml |' 10 '| |' 11 '| - foo |' -> 12 '+----------------------+' 13 '' 14 'content_offset is off by 2:' 15 ...

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

    Thank you for the report. Could you attach your test-directive, so that I can experiment and try a fix?

  • Felix Fontein Felix Fontein created ticket #517

    content_offset in directives inside grid/simple tables are off

  • 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.

  • engelbert gruber engelbert gruber committed [r10278] on Code

    release 0.22.4

  • engelbert gruber engelbert gruber committed [r10277] on Code

    release 0.22.5b1.dev

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.4/README.rst

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.4/docutils-0.22.4.tar.gz

  • engelbert gruber engelbert gruber committed [r10276] on Code

    tagging release 0.22.4

  • engelbert gruber engelbert gruber committed [r10275] on Code

    release 0.22.4

  • 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].

  • Ulrich Müller Ulrich Müller created ticket #516

    FAQ says MIME type for rst is text/x-rst but its source page is served as text/prs.fallenstein.rst

  • 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.

  • Kristian Lehto Kristian Lehto posted a comment on ticket #514

    Problem is io.FileInput.read() It needs to be data = self.decode(self.source.read()) instead of data = self.source.read() which is bytes.

  • Kristian Lehto Kristian Lehto created ticket #514

    publish_file no longer works / crashes

  • engelbert gruber engelbert gruber committed [r10262] on Code

    add email

  • engelbert gruber engelbert gruber committed [r10261] on Code

    release 0.22.3

  • engelbert gruber engelbert gruber committed [r10260] on Code

    version 0.22.4b1

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.3/README.rst

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.3/docutils-0.22.3.tar.gz

  • engelbert gruber engelbert gruber committed [r10259] on Code

    tagging release 0.22.3

  • engelbert gruber engelbert gruber committed [r10258] on Code

    version 0.22.3

  • 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.

  • engelbert gruber engelbert gruber committed [r10252] on Code

    version 0.22.3b1.dev

  • 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.

  • Daeho Ro Daeho Ro posted a comment on ticket #513

    Now it looks fine, thank you! https://github.com/Homebrew/homebrew-core/pull/245109

  • 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?

  • engelbert gruber engelbert gruber committed [r10248] on Code

    release 0.22.2

  • engelbert gruber engelbert gruber committed [r10247] on Code

    version 0.22.3b1.dev

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.2/README.rst

  • Docutils: Documentation Utilities Docutils: Documentation Utilities released /docutils/0.22.2/docutils-0.22.2.tar.gz

  • engelbert gruber engelbert gruber committed [r10246] on Code

    tagging release 0.22.2

  • engelbert gruber engelbert gruber committed [r10245] on Code

    version 0.22.2

1 >