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. --- test/pipe-tables.native | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/pipe-tables.native') diff --git a/test/pipe-tables.native b/test/pipe-tables.native index 63c2c17bc..6e39dc475 100644 --- a/test/pipe-tables.native +++ b/test/pipe-tables.native @@ -85,7 +85,7 @@ ,[[Plain [Str "4"]] ,[Plain [Str "44"]]]] ,Para [Str "Long",Space,Str "pipe",Space,Str "table",Space,Str "with",Space,Str "relative",Space,Str "widths:"] -,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.125,0.1375,0.5] +,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.1639344262295082,0.18032786885245902,0.6557377049180328] [[Plain [Str "Default1"]] ,[Plain [Str "Default2"]] ,[Plain [Str "Default3"]]] -- cgit v1.2.3