From 4c5782c93f6e7a4c8bf2aa4c809ca3913ebdcdcf Mon Sep 17 00:00:00 2001 From: Larry Versaw Date: Thu, 1 Mar 2018 21:15:50 -0700 Subject: [PATCH] footnote replaces verse text --- libraries/usfm_tools/verifyUSFM.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/usfm_tools/verifyUSFM.py b/libraries/usfm_tools/verifyUSFM.py index d53de3da..ac5c76a1 100644 --- a/libraries/usfm_tools/verifyUSFM.py +++ b/libraries/usfm_tools/verifyUSFM.py @@ -624,6 +624,8 @@ def isTextCarryingToken(token): def take(token): state = State() + if isFootnote(token): + state.addText() # footnote suffices for verse text if state.needText() and not token.isTEXT() and not isTextCarryingToken(token): report_error(state.reference + " - Empty verse" + '\n') if token.isID(): @@ -733,4 +735,4 @@ def verify_contents_quiet(unicodestring, filename, book_code, lang_code): # elif os.path.isfile(source): # verifyFile(source) # else: -# sys.stderr.write("File not found: " + source + '\n') \ No newline at end of file +# sys.stderr.write("File not found: " + source + '\n')