From 89d00fcbc75e128cba516009db100daec4b794a9 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sat, 28 Dec 2024 15:59:04 +0200 Subject: refactoring --- lib/_ak_html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/_ak_html') diff --git a/lib/_ak_html b/lib/_ak_html index 5a47836..491cb6c 100755 --- a/lib/_ak_html +++ b/lib/_ak_html @@ -19,7 +19,7 @@ ### source $AK_LIBDIR/_ak_log -_ak_generate_html_header(){ +function _ak_generate_html_header(){ printf '\n\n\n' printf 'Arching Kaos Chain Data\n' printf ' \n' @@ -82,7 +82,7 @@ _ak_generate_html_header(){ printf '\n' } -_ak_generate_html_zblock(){ +function _ak_generate_html_zblock(){ if [ ! -z $1 ] && [ -n "$1" ] then arg="$1" @@ -160,7 +160,6 @@ _ak_generate_html_zblock(){ _ak_log_error "Empty datablock value" exit 1 fi - # Output data in HTML format printf '

%s

\n' "$PROGRAM" printf '

🔎 %szblock

\n' "$zblock" -- cgit v1.2.3