Skip to content

Commit

Permalink
allow verses with one word
Browse files Browse the repository at this point in the history
  • Loading branch information
d-flood committed Sep 2, 2021
1 parent d2a8501 commit 07cfabb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tendon/py/txt2json/convert_text_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 07cfabb

Please sign in to comment.