diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-06-03 08:09:51 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-06-03 08:09:51 -0400 |
| commit | 80ebcc9b9787cfed1ed0c835133f7bbc121e036e (patch) | |
| tree | 2fdc90a8d2494cc1b5db23ba37087faef0956628 /oeb.py | |
| parent | 8f2e3d949a6dd3bd96bdeb5a7bf7cdb74a5f3ef1 (diff) | |
| download | cgi-bin-80ebcc9b9787cfed1ed0c835133f7bbc121e036e.tar.gz | |
oeb: fix verse detection
Diffstat (limited to 'oeb.py')
| -rwxr-xr-x | oeb.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/oeb.py b/oeb.py index 7d8c786..fcf05d5 100755 --- a/oeb.py +++ b/oeb.py @@ -25,9 +25,7 @@ def main(qs): printing = 0 inendc = False book=passage.start.format('b').upper() - eprint(book) fname=sco(['find', 'oeb/', '-iname', f'*-{book}*']).strip() - eprint(fname) if not fname: # TODO: throw 51? print(f"{book} doesn't exist yet in the OEB\r\n") @@ -41,7 +39,7 @@ def main(qs): for line in f: if f'\\c {startc}' == line.strip(): printing = 1 - if printing == 1 and (f'\\v {startv} ') in line: + if printing == 1 and (f'\\v {startv} ' in line or f'\\v {startv}' == line.strip()): printing =2 if (f'\\c {endc}') == line.strip(): inendc = True |
