From 7c0ccb3da789673b0c0593764da0987c203a5894 Mon Sep 17 00:00:00 2001 From: Dirk Date: Mon, 14 Oct 2024 13:08:45 +0200 Subject: [PATCH] Fix HTML output in #2568 --- testssl.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testssl.sh b/testssl.sh index 9511703..2975d13 100755 --- a/testssl.sh +++ b/testssl.sh @@ -23132,9 +23132,11 @@ EOF # Pretty print - again, it's just nicer to read for reason in "${sorted_reasons[@]}"; do if [[ $reason_nr -eq 0 ]]; then - pr_bold " Grade cap reasons "; out_row_aligned_max_width "$reason\n" ' ' $TERM_WIDTH + pr_bold " Grade cap reasons " + outln "$(out_row_aligned_max_width "$reason" " " $TERM_WIDTH)" else - out_row_aligned_max_width " $reason\n" ' ' $TERM_WIDTH + outln "$(out_row_aligned_max_width " $reason" " " $TERM_WIDTH)" + fi ((reason_nr++)) fileout "grade_cap_reason_${reason_nr}" "INFO" "$reason"