From f29ae86a8a519ed06840dcd532e33c98760ab501 Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Tue, 16 Dec 2025 18:11:51 +0100 Subject: [PATCH] decrease newlines --- allioli.awk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/allioli.awk b/allioli.awk index e92e2a2..fd1281e 100644 --- a/allioli.awk +++ b/allioli.awk @@ -307,11 +307,11 @@ function printfootnote(footnote_num, footnote, word_count, characters_printed for ( i=1; i <= MAX_WIDTH - length(footnote) - 1; i++){ printf(" ") } - printf("%s%s", sup_num, footnote) + printf("%s%s\n", sup_num, footnote) } else{ word_count = split(footnote, words, " ") - printf("\n\t\t%s", sup_num) + printf("\t\t%s", sup_num) characters_printed=17 #account for indents at beginning of each multiline footnote (2 tabs + sup_num) for (i = 1; i <= word_count; i++) { if (characters_printed + length(words[i]) + (characters_printed > 0 ? 1 : 0) > MAX_WIDTH - 8 ) { @@ -327,7 +327,6 @@ function printfootnote(footnote_num, footnote, word_count, characters_printed } printf("\n") } - printf("\n") } }