From 325bfd53e889fd52f240e4bcbd690b03dddc7570 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Mon, 29 Jul 2019 01:24:29 +0000 Subject: column: fix outputing empty column at the end of line The following commands manifests the problem. In old versions before commit 4762ae9d60 ("column: use libsmartcols for --table"), both of them should output with 2 "|" echo '||' | column -o '|' -s '|' -t echo '|| ' | column -o '|' -s '|' -t Fixes: 4762ae9d60 ("column: use libsmartcols for --table") Signed-off-by: Yousong Zhou Reviewed-by: Sami Kerola --- tests/expected/column/table-empty-column-at-eol | 1 + 1 file changed, 1 insertion(+) create mode 100644 tests/expected/column/table-empty-column-at-eol (limited to 'tests/expected/column/table-empty-column-at-eol') diff --git a/tests/expected/column/table-empty-column-at-eol b/tests/expected/column/table-empty-column-at-eol new file mode 100644 index 000000000..948cf947f --- /dev/null +++ b/tests/expected/column/table-empty-column-at-eol @@ -0,0 +1 @@ +| -- cgit v1.2.3-55-g7522