diff options
| author | Zach DeCook <zachdecook@librem.one> | 2021-03-23 09:01:06 -0400 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2021-03-23 09:01:06 -0400 |
| commit | 8e1543c2c7aeb6ac103cf736e0e4e5d65b8e9c07 (patch) | |
| tree | 3746261434ce2bb5831766b7d3e70302f5c90016 /lsv.py | |
| parent | 539b279fdbb44ee67c6480f2dee8247ba57199f5 (diff) | |
| download | cgi-bin-8e1543c2c7aeb6ac103cf736e0e4e5d65b8e9c07.tar.gz | |
*LSV: prevent infinite chapter
Diffstat (limited to 'lsv.py')
| -rwxr-xr-x | lsv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lsv.py b/lsv.py index 98d1207..9100629 100755 --- a/lsv.py +++ b/lsv.py @@ -35,13 +35,14 @@ def main(qs): eprint(startmark) endmark = passage.end.format('a c:v') for line in f: - if startmark in line: + if (startmark+' ') in line: printing = True elif endmark in line: printf(line) printing = False if printing: printf(line) + print('(LSV)') #end in newline if __name__ == '__main__': qs = os.getenv("QUERY_STRING") or (sys.argv[1] if len(sys.argv) >= 2 else '') |
