summaryrefslogtreecommitdiffstats
path: root/generate_reference.py
diff options
context:
space:
mode:
Diffstat (limited to 'generate_reference.py')
-rwxr-xr-xgenerate_reference.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/generate_reference.py b/generate_reference.py
index 962a939..5ee7363 100755
--- a/generate_reference.py
+++ b/generate_reference.py
@@ -103,11 +103,14 @@ def parse_notes_test(instr):
matches = BIBLE_REF_PARSE_RE.findall(instr)
logging.debug('matches = %s', matches)
out_list = []
+ book = None
for match in matches:
logging.debug('match = %s', match)
if match[0]:
book = match[0]
+ elif book is None:
+ book = ''
chapter = int(match[1])
verse = match[2]
if SPLIT_VERSE_RE.search(verse):