From 0df5cffb844870984db48a9ded22dca05fd90f76 Mon Sep 17 00:00:00 2001 From: Ethan P Date: Sun, 4 Oct 2020 12:15:27 -0700 Subject: [PATCH] mdroff: Fix warning that appears in tables --- mdroff.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mdroff.sh b/mdroff.sh index ea95573..def8733 100755 --- a/mdroff.sh +++ b/mdroff.sh @@ -101,6 +101,12 @@ mdroff:emit:table_end() { mdroff:emit:table_heading() { local heading="$(printf "| %s " "$@")" printf "%s\n" "${heading:1}" + + # Prevent tbl warning. + for temp in "${@:2}"; do printf "|"; done + printf "\n" + + # Start table data. printf ".SP\n" }