<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/docutils/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/docutils/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 17 Apr 2026 08:48:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/docutils/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>#518 id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/?limit=50#e0c6</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;status&lt;/strong&gt;: open --&amp;gt; closed-fixed&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Günter Milde</dc:creator><pubDate>Fri, 17 Apr 2026 08:48:40 -0000</pubDate><guid>https://sourceforge.netde8131c00dc7e8ca6ad946fb735a42ebd44df9fa</guid></item><item><title>#518 id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/?limit=25#b4e5/0106/30ca/b665</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I think those changes make it clearer, thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">miketheman</dc:creator><pubDate>Fri, 10 Apr 2026 13:22:06 -0000</pubDate><guid>https://sourceforge.net46faf51e93106984bf0b8f4d312b322a73137564</guid></item><item><title>#518 id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/?limit=50#b4e5/0106/30ca</link><description>&lt;div class="markdown_content"&gt;&lt;blockquote&gt;
&lt;p&gt;Is there something to change in SF classification to make this a documentation issue vs bug?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Classing the report as bug report is IMO correct, defining the problem as a documentation issue should help to address it.&lt;/p&gt;
&lt;p&gt;Would the changes in &lt;a class="alink" href="/p/docutils/code/10310/"&gt;[r10310]&lt;/a&gt; and &lt;span&gt;[10311]&lt;/span&gt; have prevented the "wrong feeling"?&lt;br/&gt;
(It will take some time to get them into the published documentation at  &lt;a href="https://docutils.sourceforge.io/docs/." rel="nofollow"&gt;https://docutils.sourceforge.io/docs/.&lt;/a&gt;)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Günter Milde</dc:creator><pubDate>Fri, 10 Apr 2026 07:43:14 -0000</pubDate><guid>https://sourceforge.net76dc5c0dfe072fbaef8d615e5dc44856adef1816</guid></item><item><title>#518 id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/?limit=25#b4e5/0106</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thanks for looking into it.  It felt wrong enough to raise it here.&lt;/p&gt;
&lt;p&gt;Is there something to change in SF classification to make this a documentation issue vs bug?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">miketheman</dc:creator><pubDate>Sat, 28 Mar 2026 20:10:32 -0000</pubDate><guid>https://sourceforge.netaf0d20d984f0f1dbd1ad33912bd74841d455fe8e</guid></item><item><title>#518 id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/?limit=50#b4e5</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you for the report.&lt;br/&gt;
I'd classify the problem as a documentation issue rather than a bug.&lt;/p&gt;
&lt;p&gt;The problem is the difference between an &lt;em&gt;reference name&lt;/em&gt; and an &lt;em&gt;identifier&lt;/em&gt; .&lt;br/&gt;
Identifiers are derived from reference names via the &lt;a href="https://docutils.sourceforge.io/docs/ref/rst/directives.html#identifier-normalization" rel="nofollow"&gt;identifier normalization&lt;/a&gt;. Due to identifier restriction in HTML4, a reference name consisting of only digits "vanishes completely" unless prefixed. (cf. &lt;a href="https://sourceforge.net/p/docutils/feature-requests/66/"&gt;https://sourceforge.net/p/docutils/feature-requests/66/&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;This is why the reference-name "5" is replaced by the auto-generated ID "footnote-1" (with 1 just be a running number to disambiguate all "footnote" IDs). A similar problem happens to, e.g. section headings consiting of just a date.&lt;br/&gt;
However, prefixing the ID with "user-content" allows the "1" to be appended.&lt;/p&gt;
&lt;p&gt;You may play with the attached test script.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Günter Milde</dc:creator><pubDate>Tue, 24 Mar 2026 17:23:00 -0000</pubDate><guid>https://sourceforge.net9b01bd208d39c4146e3242109e00ce402d83d65a</guid></item><item><title>id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I was recently working on adding an &lt;code&gt;id_prefix&lt;/code&gt; string to enable the behavior as described in &lt;a href="https://docutils.sourceforge.io/docs/user/config.html#id-prefix" rel="nofollow"&gt;https://docutils.sourceforge.io/docs/user/config.html#id-prefix&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;It works pretty consistently, however when I came across a footnote, it removed the &lt;code&gt;footnote-&lt;/code&gt; prefix from the rendered ID, but not the associated &lt;code&gt;href&lt;/code&gt; value, leaving the rendered links a little more confusing than before.&lt;/p&gt;
&lt;p&gt;Here's a reproduction example:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="kn"&gt;import&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;sys&lt;/span&gt;
&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;difflib&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;unified_diff&lt;/span&gt;

&lt;span class="kn"&gt;from&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nn"&gt;docutils.core&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;publish_parts&lt;/span&gt;


&lt;span class="n"&gt;INPUT_RST_WITH_FOOTNOTES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"""&lt;/span&gt;
&lt;span class="s2"&gt;Footnote reference, like [5]_.&lt;/span&gt;

&lt;span class="s2"&gt;Some Text&lt;/span&gt;

&lt;span class="s2"&gt;.. [5] A numerical footnote.&lt;/span&gt;
&lt;span class="s2"&gt;"""&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;render_body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rst&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;publish_parts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rst&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;writer&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"html5"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;settings_overrides&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;)[&lt;/span&gt;&lt;span class="s2"&gt;"body"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;


&lt;span class="n"&gt;settings&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"output_encoding"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"unicode"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="n"&gt;basic&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;render_body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_RST_WITH_FOOTNOTES&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id_prefix"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"user-content-"&lt;/span&gt;
&lt;span class="n"&gt;prefixed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;render_body&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;INPUT_RST_WITH_FOOTNOTES&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;settings&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdout&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;writelines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;unified_diff&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
        &lt;span class="n"&gt;basic&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;keepends&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="n"&gt;prefixed&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;keepends&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
        &lt;span class="n"&gt;fromfile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"basic.html"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="n"&gt;tofile&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"prefixed.html"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Output with Docutils 0.22.4:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="gd"&gt;--- basic.html&lt;/span&gt;
&lt;span class="gi"&gt;+++ prefixed.html&lt;/span&gt;
&lt;span class="gu"&gt;@@ -1,8 +1,8 @@&lt;/span&gt;
&lt;span class="gd"&gt;-&amp;lt;p&amp;gt;Footnote reference, like &amp;lt;a class="brackets" href="#footnote-1" id="footnote-reference-1" role="doc-noteref"&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;[&amp;lt;/span&amp;gt;5&amp;lt;span class="fn-bracket"&amp;gt;]&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="gi"&gt;+&amp;lt;p&amp;gt;Footnote reference, like &amp;lt;a class="brackets" href="#user-content-5" id="user-content-footnote-reference-1" role="doc-noteref"&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;[&amp;lt;/span&amp;gt;5&amp;lt;span class="fn-bracket"&amp;gt;]&amp;lt;/span&amp;gt;&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&amp;lt;p&amp;gt;Some Text&amp;lt;/p&amp;gt;
&amp;lt;aside class="footnote-list brackets"&amp;gt;
&lt;span class="gd"&gt;-&amp;lt;aside class="footnote brackets" id="footnote-1" role="doc-footnote"&amp;gt;&lt;/span&gt;
&lt;span class="gd"&gt;-&amp;lt;span class="label"&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;a role="doc-backlink" href="#footnote-reference-1"&amp;gt;5&amp;lt;/a&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;]&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&lt;span class="gi"&gt;+&amp;lt;aside class="footnote brackets" id="user-content-5" role="doc-footnote"&amp;gt;&lt;/span&gt;
&lt;span class="gi"&gt;+&amp;lt;span class="label"&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;[&amp;lt;/span&amp;gt;&amp;lt;a role="doc-backlink" href="#user-content-footnote-reference-1"&amp;gt;5&amp;lt;/a&amp;gt;&amp;lt;span class="fn-bracket"&amp;gt;]&amp;lt;/span&amp;gt;&amp;lt;/span&amp;gt;&lt;/span&gt;
&amp;lt;p&amp;gt;A numerical footnote.&amp;lt;/p&amp;gt;
&amp;lt;/aside&amp;gt;
&amp;lt;/aside&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;The things that are different:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the footnote reference changes from &lt;code&gt;1&lt;/code&gt; to &lt;code&gt;5&lt;/code&gt; - which is more accurate than before - yay!&lt;/li&gt;
&lt;li&gt;the footnote id/href value loses it's &lt;code&gt;footnote-&lt;/code&gt; prefix in the reference part, the backlinks have the prefix + &lt;code&gt;footnote-&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Both link and backlink work, it's more about the inconsistent naming of the &lt;code&gt;id&lt;/code&gt; and associated &lt;code&gt;href&lt;/code&gt; values, and ther output behavior not matching the expectation from the documentation.&lt;/p&gt;
&lt;p&gt;Hope this makes sense!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">miketheman</dc:creator><pubDate>Sun, 22 Mar 2026 00:40:03 -0000</pubDate><guid>https://sourceforge.net457786059b541aa0519c2aa7f5ff6bedc11a7806</guid></item><item><title>id_prefix removes footnote prefix from </title><link>https://sourceforge.net/p/docutils/bugs/518/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Ticket 518 has been modified: id_prefix removes footnote prefix from &lt;br/&gt;
Edited By: Günter Milde (milde)&lt;br/&gt;
Status updated: 'open' =&amp;gt; 'closed-fixed'&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">miketheman</dc:creator><pubDate>Sun, 22 Mar 2026 00:40:03 -0000</pubDate><guid>https://sourceforge.net5e924915cb466baf1341abe44bea8ee550f06be1</guid></item><item><title>#516 FAQ says MIME type for rst is text/x-rst but its source page is served as text/prs.fallenstein.rst</title><link>https://sourceforge.net/p/docutils/bugs/516/?limit=50#eeff</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Commit &lt;a class="alink" href="/p/docutils/code/10290/"&gt;[r10290]&lt;/a&gt; updates the FAQ answer to document the 3rd party entry "text/prs.fallenstein.rst"&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Günter Milde</dc:creator><pubDate>Sun, 11 Jan 2026 19:54:47 -0000</pubDate><guid>https://sourceforge.net84d84d3c45563fccd8053d1a012287789c3e8972</guid></item><item><title>#516 FAQ says MIME type for rst is text/x-rst but its source page is served as text/prs.fallenstein.rst</title><link>https://sourceforge.net/p/docutils/bugs/516/?limit=50#406f</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The author/change controller  writes in the registration:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;If anybody more intimately involved with ReStructuredText &lt;br/&gt;
      wants to take it over, it will be surrendered gladly.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;We may consider taking over as "change controller" and&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;keep the name as &lt;code&gt;text/prs.fallenstein.rst&lt;/code&gt;&lt;br/&gt;
     (never touch a running system),&lt;/li&gt;
&lt;li&gt;change the name to &lt;code&gt;text/prs.docutils.rst&lt;/code&gt; &lt;br/&gt;
     (simple registration in the Personal Registration Tree), or&lt;/li&gt;
&lt;li&gt;try to register as &lt;code&gt;text/rst&lt;/code&gt;&lt;br/&gt;
     (official registry, requires publication of an RFC)&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Günter Milde</dc:creator><pubDate>Fri, 09 Jan 2026 17:40:56 -0000</pubDate><guid>https://sourceforge.netdd21db17a4a750ceb35d729db6623dbaa3431c5f</guid></item><item><title>#517 content_offset in directives inside grid/simple tables are off</title><link>https://sourceforge.net/p/docutils/bugs/517/?limit=25#b781</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;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 :) )!&lt;/p&gt;
&lt;p&gt;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:&lt;br/&gt;
1. Being able to show more precise error locations when linting code in code blocks;&lt;br/&gt;
2. To be able to replace code block content's with output (extracted from running the code in other code blocks or somewhere else) to make sure that the output shown in documentation is correct. (Obviously this only works if the exact position can be located and replacing the content is easy, which is usually the case for code blocks in list tables or outside of tables.)&lt;/p&gt;
&lt;p&gt;If you're interested in it, the location code is here: &lt;a href="https://github.com/felixfontein/antsibull-docutils/blob/main/src/antsibull_docutils/rst_code_finder.py" rel="nofollow"&gt;https://github.com/felixfontein/antsibull-docutils/blob/main/src/antsibull_docutils/rst_code_finder.py&lt;/a&gt; (it's a bit more involved than the example code for this issue). &lt;br/&gt;
A use (of that code) for calling yamllint in code blocks is here: &lt;a href="https://github.com/ansible/ansible-documentation/blob/devel/tests/checkers/rst-yamllint.py" rel="nofollow"&gt;https://github.com/ansible/ansible-documentation/blob/devel/tests/checkers/rst-yamllint.py&lt;/a&gt;&lt;br/&gt;
And another use of that code for replacing code block contents is here: &lt;a href="https://github.com/ansible-community/antsibull-docs/tree/main/src/antsibull_docs/ansible_output" rel="nofollow"&gt;https://github.com/ansible-community/antsibull-docs/tree/main/src/antsibull_docs/ansible_output&lt;/a&gt; (documentation with examples: &lt;a href="https://docs.ansible.com/projects/antsibull-docs/ansible-output/" rel="nofollow"&gt;https://docs.ansible.com/projects/antsibull-docs/ansible-output/&lt;/a&gt;)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Felix Fontein</dc:creator><pubDate>Wed, 07 Jan 2026 20:23:31 -0000</pubDate><guid>https://sourceforge.netd8dda5518444250e33e41de4785c5fd710e8b859</guid></item></channel></rss>