How to fix column width in reStructuredText tables?

I use Sphinx to create this table:

+---------------+---------------------+---------------------------+-------------------------------------+---------------------+ | Stakeholder | Major Value | Attitudes | Constraints | Major Interests | +===============+=====================+===========================+=====================================+=====================+ | Manager | Reduce data entry. | Strong commitment through | Cost, time and the required skill to| Google apps | | | Improve ft | release 4. | develop this application. | integration. | | | productivity. | | | | +---------------+---------------------+---------------------------+-------------------------------------+---------------------+ | Ft | More efficient use | Strong enthusiasm | Training required to use CRM. | Google apps | | | of time. Less | | | integration. | | | repetitive work. | | | | | | | | | | +---------------+---------------------+---------------------------+-------------------------------------+---------------------+ 

I want the column width to be fixed with a narrow size so that this table appears on one page. But the Sphinx turns text into text in one long line. So the column width is the size of the ceiling text. See Attached Image.

Is there a way to fix the column width or make ceil text display as the source table?

thanks

enter image description here

+6
source share
1 answer

use directive

 .. tabularcolumns:: |p{1.5cm}|p{1.5cm}|L| 
+2
source

Source: https://habr.com/ru/post/979853/


All Articles