From e86c337356fc723e366e5f0d6209205bcffe88f3 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 12 Dec 2017 15:16:16 -0800 Subject: Pipe tables: use full text width for tables with wrapping cells. Previously we computed the column sizes based on the ratio between the header lines and the text width (as set by `--columns`). This meant that tables with very short header lines would be very narrow. With this change, pipe tables with wrapping cells will always take up the whole text width. The relative column widths will still be determined by the ratio of header lines, but they will be normalized to add up to 1.0. --- MANUAL.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'MANUAL.txt') diff --git a/MANUAL.txt b/MANUAL.txt index 29fc629cd..9fd0e3381 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -2637,7 +2637,10 @@ and lists, and cannot span multiple lines. If a pipe table contains a row whose printable content is wider than the column width (see `--columns`), then the cell contents will wrap, with the relative cell widths determined by the widths of the separator -lines. +lines. (In this case, the table will take up the full text +width.) If no lines are wider than column width, then +cell contents will not be wrapped, and the cells will be sized +to their contents. Note: pandoc also recognizes pipe tables of the following form, as can be produced by Emacs' orgtbl-mode: -- cgit v1.2.3