From 79e6f8db13ef8f0db6da8fe4e17b7626fe6ef3e9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 23 Nov 2021 10:50:35 -0800 Subject: Improve detection of pipe table line widths. Fixed calculation of maximum column widths in pipe tables. It is now based on the length of the markdown line, rather than a "stringified" version of the parsed line. This should be more predictable for users. In addition, we take into account double-wide characters such as emojis. Closes #7713. --- MANUAL.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'MANUAL.txt') diff --git a/MANUAL.txt b/MANUAL.txt index 7e15e8833..0038f16cf 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -4055,12 +4055,12 @@ legal (though ugly) pipe table: orange|3.09 The cells of pipe tables cannot contain block elements like paragraphs -and lists, and cannot span multiple lines. If a pipe table contains a -row whose Markdown content is wider than the column width (see -`--columns`), then the table will take up the full text width and -the cell contents will wrap, with the relative cell widths determined -by the number of dashes in the line separating the table header from -the table body. (For example `---|-` would make the first column 3/4 +and lists, and cannot span multiple lines. If any line of the +markdown source is longer than the column width (see `--columns`), +then the table will take up the full text width and the cell +contents will wrap, with the relative cell widths determined by +the number of dashes in the line separating the table header +from the table body. (For example `---|-` would make the first column 3/4 and the second column 1/4 of the full text width.) On the other hand, if no lines are wider than column width, then cell contents will not be wrapped, and the cells will be sized -- cgit v1.2.3