decrease newlines
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user