From: Alex F. <afo...@us...> - 2022-02-10 06:13:31
|
--- ** [bugs:#444] Table column width rounding can result in uneven column widths** **Status:** open **Created:** Thu Feb 10, 2022 06:13 AM UTC by Alex Forencich **Last Updated:** Thu Feb 10, 2022 06:13 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 doc...@li... 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. |