[docutils:patches] #214 Give better messages on malformed tables

Günter Milde via Docutils-develop <[email protected]> Thu, 18 Sep 2025 08:33:03 -0000
Newsgroups gmane.text.docutils.devel
Message-ID </p/docutils/patches/214/6e4e57878ee2da94451778c923147ce80410b08d.patches@docutils.p.sourceforge.net>
This is a multi-part message in MIME format.
--===============7532749847496369632==
Content-Type: multipart/related; boundary="===============3347666631888541811=="

This is a multi-part message in MIME format.
--===============3347666631888541811==
Content-Type: multipart/alternative; boundary="===============0108708397019355566=="
MIME-Version: 1.0

--===============0108708397019355566==
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

- **status**: open-fixed --> closed-fixed
- **Comment**:

Fixed in Docutils 0.22.1. Thanks again.



---

**[patches:#214] Give better messages on malformed tables**

**Status:** closed-fixed
**Group:** None
**Created:** Sun Jun 08, 2025 05:58 PM UTC by Jynn Nelson
**Last Updated:** Tue Aug 19, 2025 09:30 PM UTC
**Owner:** nobody
**Attachments:**

- [tables.diff](https://sourceforge.net/p/docutils/patches/214/attachment/tables.diff) (5.2 kB; application/octet-stream)


This does several things:
- Specifies `Misaligned right border` for that error, instead of just "malformed table".
- Shows the line where each error happened, not the line where the table starts.
  - This had a complication that line numbers appear to be wrong when `include` directives are present (they include the lines in the source document, instead of being relative to the included document). Just disabled the new smarter logic in that case.
- Changes `malformed_table` to require both detail and an offset, so poor errors like this can't happen in the future.

Fixes https://sourceforge.net/p/docutils/bugs/504/.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
--===============0108708397019355566==
MIME-Version: 1.0
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: 7bit

<div class="markdown_content"><ul>
<li><strong>status</strong>: open-fixed --&gt; closed-fixed</li>
<li><strong>Comment</strong>:</li>
</ul>
<p>Fixed in Docutils 0.22.1. Thanks again.</p>
<hr/>
<p><strong><a class="alink strikethrough" href="https://sourceforge.net/p/docutils/patches/214/">[patches:#214]</a> Give better messages on malformed tables</strong></p>
<p><strong>Status:</strong> closed-fixed<br/>
<strong>Group:</strong> None<br/>
<strong>Created:</strong> Sun Jun 08, 2025 05:58 PM UTC by Jynn Nelson<br/>
<strong>Last Updated:</strong> Tue Aug 19, 2025 09:30 PM UTC<br/>
<strong>Owner:</strong> nobody<br/>
<strong>Attachments:</strong></p>
<ul>
<li><a class="" href="https://sourceforge.net/p/docutils/patches/214/attachment/tables.diff">tables.diff</a> (5.2 kB; application/octet-stream)</li>
</ul>
<p>This does several things:<br/>
- Specifies <code>Misaligned right border</code> for that error, instead of just "malformed table".<br/>
- Shows the line where each error happened, not the line where the table starts.<br/>
  - This had a complication that line numbers appear to be wrong when <code>include</code> directives are present (they include the lines in the source document, instead of being relative to the included document). Just disabled the new smarter logic in that case.<br/>
- Changes <code>malformed_table</code> to require both detail and an offset, so poor errors like this can't happen in the future.</p>
<p>Fixes <a href="https://sourceforge.net/p/docutils/bugs/504/.">https://sourceforge.net/p/docutils/bugs/504/.</a></p>
<hr/>
<p>Sent from sourceforge.net because [email protected] is subscribed to <a href="https://sourceforge.net/p/docutils/patches/">https://sourceforge.net/p/docutils/patches/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/docutils/admin/patches/options.">https://sourceforge.net/p/docutils/admin/patches/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>
--===============0108708397019355566==--

--===============3347666631888541811==--


--===============7532749847496369632==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============7532749847496369632==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline