diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 17:52:44 +0300 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-06-10 17:52:44 +0300 |
commit | 40ad20464700357cbe50676abfb2cb24d33f5037 (patch) | |
tree | ff75b8677cb4747fc0345e3ffc1e2d48f36a3c1b /lib | |
parent | 07e553ef18171362b3be34459ed595f88682d4fc (diff) | |
download | arching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.tar.gz arching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.tar.bz2 arching-kaos-tools-40ad20464700357cbe50676abfb2cb24d33f5037.zip |
bugfixes
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/_ak_html | 4 | ||||
-rwxr-xr-x | lib/_ak_zblock | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/_ak_html b/lib/_ak_html index bae5466..38723c8 100755 --- a/lib/_ak_html +++ b/lib/_ak_html @@ -10,7 +10,7 @@ _ak_generate_html_header(){ printf ' body {\n' printf ' background-color: #000;\n' printf ' color: lightgreen;\n' - printf ' padding: 2%;\n' + printf ' padding: 2%%;\n' printf ' width: auto;\n' printf ' font-family: monospace;\n' printf ' font-size: 1rem;\n' @@ -162,7 +162,7 @@ _ak_generate_html_zblock(){ printf ' </td>\n' printf ' <td>\n' printf ' <details>\n' - printf ' <summary>$zblock</summary>\n' + printf ' <summary>%s</summary>\n' "$zblock" printf ' <pre>%s</pre>' "$(_ak_ipfs_cat $zblock | jq)" printf ' </details>\n' printf ' </td>\n' diff --git a/lib/_ak_zblock b/lib/_ak_zblock index 6aec37d..0095c3d 100755 --- a/lib/_ak_zblock +++ b/lib/_ak_zblock @@ -394,7 +394,7 @@ _ak_zblock_gen_html(){ se=$(echo $time_ended | cut -d '.' -f 1) nse=$(echo $time_ended | cut -d '.' -f 2) printf ' <hr>\n' >> zblock-$1.html - printf ' <footer>Generated by $PROGRAM on $(datehuman) in $(( $se - $ss )).' >> zblock-$1.html + printf ' <footer>Generated by %s on %s in %s.' "$PROGRAM" "$(datehuman)" "$(( $se - $ss ))">> zblock-$1.html if [ $nse -lt $nss ] then printf '%s seconds</footer>\n' "$(( 1$nse - $nss ))" >> zblock-$1.html |