kjv

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

commit ff0996f9460f3f8fa108132a50aa4f8c23bae03c
parent 642226241ab6cee70dd0f22d381974f270f5f87c
Author: Tim Cooper <tim.cooper@layeh.com>
Date:   Fri, 10 Aug 2018 23:53:05 -0300

fix range_ext not working with ranges in the same chapter

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

diff --git a/kjv.awk b/kjv.awk @@ -142,7 +142,7 @@ cmd == "ref" && mode == "range" && (tolower($1) == p["book"] || tolower($2) == p processline() } -cmd == "ref" && mode == "range_ext" && (tolower($1) == p["book"] || tolower($2) == p["book"]) && (($4 == p["chapter"] && $5 >= p["verse"]) || ($4 > p["chapter"] && $4 < p["chapter_end"]) || ($4 == p["chapter_end"] && $5 <= p["verse_end"])) { +cmd == "ref" && mode == "range_ext" && (tolower($1) == p["book"] || tolower($2) == p["book"]) && (($4 == p["chapter"] && $5 >= p["verse"] && p["chapter"] != p["chapter_end"]) || ($4 > p["chapter"] && $4 < p["chapter_end"]) || ($4 == p["chapter_end"] && $5 <= p["verse_end"] && p["chapter"] != p["chapter_end"]) || (p["chapter"] == p["chapter_end"] && $4 == p["chapter"] && $5 >= p["verse"] && $5 <= p["verse_end"])) { processline() }