Menu

#39 rst2html: do not generate colgroup tags for tables

Default
closed-fixed
nobody
5
2017-06-23
2014-11-06
No

rst2html generates tags which sets widths for columns. Because of that, the browser cannot decide anymore how to render the table best.
This leads to line breaks in cells even if there is enough space, e.g. at http://p.cweiske.de/107

Please disable colgroup generation completely, or at least provide a command line switch.

Discussion

  • Günter Milde

    Günter Milde - 2015-02-23

    Could you please test, if the new ":widthts: auto" option
    (cf. https://sourceforge.net/p/docutils/patches/123/)
    solves your problem.

     
  • Günter Milde

    Günter Milde - 2015-02-23
    • status: open --> open-remind
     
  • Christian Weiske

    Yes, the patch description sounds as if the problem will be fixed by it.

    You can close the bug.

     
  • Brecht Machiels

    Brecht Machiels - 2015-02-25

    Note that you'll also need the changes in patch 125, which has not been accepted yet

     

    Last edit: Brecht Machiels 2015-02-25
  • Christian Weiske

    This also happens in S5 mode.

    Also, why do I have to specify an option for it? Why can't we just let browsers decide what how to render the tables?

    In the meantime, I'm removing the colgroup tags via a makefile:

    xmlstarlet ed --inplace -P -d '//_:colgroup' slides.html

     

    Last edit: Christian Weiske 2016-02-24
  • Günter Milde

    Günter Milde - 2017-02-06

    Patch 125 is now implemented in the HTML5 writer (but still needs the OK for html4css1 and S5, see docutils-devel list).

    Also, why do I have to specify an option for it? Why can't we just let browsers decide what how to render the tables?

    For backwardst compatibility reasons, the default behaviour was kept as-is.
    There is, however the possibility to change this for all tables in the configuration, see
    http://docutils.sourceforge.net/docs/user/config.html#table-style.

     
  • Günter Milde

    Günter Milde - 2017-06-23
    • status: open-remind --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2017-06-23

    "Auto" collumn widths are now available in all HTML writers.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.