From 07cfabbd8b181d55746ea9ac746dc55192694d9d Mon Sep 17 00:00:00 2001 From: d-flood Date: Thu, 2 Sep 2021 10:25:26 -0500 Subject: [PATCH] allow verses with one word --- src/tendon/py/txt2json/convert_text_to_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tendon/py/txt2json/convert_text_to_json.py b/src/tendon/py/txt2json/convert_text_to_json.py index 8379c4d..22bcc29 100644 --- a/src/tendon/py/txt2json/convert_text_to_json.py +++ b/src/tendon/py/txt2json/convert_text_to_json.py @@ -105,7 +105,7 @@ def convert_text_to_json( capture = False for line in text: line = line.split() - if len(line) > 2 and line[0][0].isdigit() and line[0][-1].isdigit(): # check that line contains a reference and a text unit and is not a heading + if len(line) > 1 and line[0][0].isdigit() and line[0][-1].isdigit(): # check that line contains a reference and a text unit and is not a heading line, reference, verse = format_reference(line, reference_prefix) if not convert_all and verse_to != verse_from: # handle a range of text units to convert