mdroff: Fix warning that appears in tables

This commit is contained in:
Ethan P 2020-10-04 12:15:27 -07:00
parent 6b6016dad4
commit 0df5cffb84
No known key found for this signature in database
GPG Key ID: 6963FD04F6CF35EA

View File

@ -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"
}