kjv

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5ddd6fc525ba5095e89899c0de4108132ac26e97
parent 93ea5c324a3c1615e3b2f0a3528732488edcfd41
Author: Tim Cooper <tim.cooper@layeh.com>
Date:   Sat, 11 Aug 2018 15:41:44 -0300

fix output sometimes outputting lines longer than 80 characters

Diffstat:
Mkjv.awk | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kjv.awk b/kjv.awk @@ -109,7 +109,7 @@ function parseref(ref, arr) { function printverse(verse, word_count, characters_printed) { word_count = split(verse, words, " ") for (i = 1; i <= word_count; i++) { - if (characters_printed + length(words[i]) > 72) { + if (characters_printed + length(words[i]) + (characters_printed > 0 ? 1 : 0) > 72) { printf("\n\t") characters_printed = 0 }