[docutils:bugs] #444 Table column width rounding can result in uneven column widths
"Günter Milde" via Docutils-develop <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/bugs/444/9ec88f918d8c215feddd879056dfad4a39dd9179.bugs@docutils.p.sourceforge.net> |
- **status**: open-fixed --> closed-fixed - **Comment**: The table collumn bug is fixed in Release 0.19 (2022-07-05). Docutils 0.19 should also work nice with "recommonmark" and the development version of Sphinx. --- ** [bugs:#444] Table column width rounding can result in uneven column widths** **Status:** closed-fixed **Created:** Thu Feb 10, 2022 06:13 AM UTC by Alex Forencich **Last Updated:** Sun Feb 20, 2022 05:55 AM UTC **Owner:** nobody In the HTML generated for a table with 8 equal-width columns, the column widths in the generated colgroups are all rounded up from 12.5% to 13%, resulting in the last column being much too narrow (0.5 * 7 = 3.5, 3.5/12.5 = 0.28, so the accumulated error is almost 30%). The fix would be to revise the rounding in `depart_colspec` in `_html_base.py` to produce at least one decimal place, instead of rounding to the nearest integer. --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.