mirror of
https://github.com/eth-p/bat-extras.git
synced 2025-01-06 13:18:51 +01:00
mdroff: Fix warning that appears in tables
This commit is contained in:
parent
6b6016dad4
commit
0df5cffb84
@ -101,6 +101,12 @@ mdroff:emit:table_end() {
|
|||||||
mdroff:emit:table_heading() {
|
mdroff:emit:table_heading() {
|
||||||
local heading="$(printf "| %s " "$@")"
|
local heading="$(printf "| %s " "$@")"
|
||||||
printf "%s\n" "${heading:1}"
|
printf "%s\n" "${heading:1}"
|
||||||
|
|
||||||
|
# Prevent tbl warning.
|
||||||
|
for temp in "${@:2}"; do printf "|"; done
|
||||||
|
printf "\n"
|
||||||
|
|
||||||
|
# Start table data.
|
||||||
printf ".SP\n"
|
printf ".SP\n"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user