seperates introd. from chapters

This commit is contained in:
Alexander Bocken 2020-08-14 11:50:00 +02:00
parent 63a0f5bacc
commit 2cee31c8fc

View File

@ -193,6 +193,7 @@ function printintroductionpar(verse, word_count, characters_printed) {
characters_printed += length(words[i]) characters_printed += length(words[i])
} }
printf("\n") printf("\n")
printed_intrudction=1
} }
function printannotation(annotation, word_count, characters_printed) { function printannotation(annotation, word_count, characters_printed) {
@ -229,6 +230,10 @@ function printannotation(annotation, word_count, characters_printed) {
} }
function processline() { function processline() {
if (printed_intrudction && $4 != 0){
printf("\n\n")
printed_intrudction=0
}
if (last_book_printed != $2) { if (last_book_printed != $2) {
print $1 print $1
last_book_printed = $2 last_book_printed = $2