Menu

#475 man output produces broken tables

closed-accepted
5
2023-11-01
2023-09-25
Kovid Goyal
No

The docutils.writers.manpage.Table class produces suboptimal table markup that causes display issues depending on terminal window size. This is because of the way the external table borders are specified.
Currently the class uses | and _ to generate lines for the external borders. The correct way to do it is to use the "box" option. If you do that, groff will take care of generating the external border itself and this one renders properly in terminals. I have monkeypatched the Table class in my project to do this, here is the code: https://github.com/kovidgoyal/kitty/blob/master/docs/conf.py#L550

Discussion

  • Kovid Goyal

    Kovid Goyal - 2023-09-25

    The actual bug report in a downstream project: https://github.com/kovidgoyal/kitty/issues/5095

     
  • Nikelborm

    Nikelborm - 2023-10-10

    +1
    Same issue

     
  • engelbert gruber

    • labels: --> manpage writer
    • assigned_to: engelbert gruber
     
  • G. Branden Robinson

    +1 from this groff developer

     
  • engelbert gruber

    • status: open --> closed-accepted
     
  • engelbert gruber

    thanks for reporting

     

Log in to post a comment.

Auth0 Logo