Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
Merge ef0c2d7 into 20d7d9c
Browse files Browse the repository at this point in the history
  • Loading branch information
lversaw committed Mar 2, 2018
2 parents 20d7d9c + ef0c2d7 commit b993a76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion libraries/usfm_tools/verifyUSFM.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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')
# sys.stderr.write("File not found: " + source + '\n')
3 changes: 2 additions & 1 deletion tests/linter_tests/resources/footnote_n_refs_example.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
\v 8 y ha llegado a ser superior a los ángeles, pues ha recibido en herencia un título mucho más importante que el de ellos.
\p
\s5
\v 9 But when Joseph heard that Archelaus had succeeded his father Herod as king of Judea, he was afraid to go there. He was given more instructions in a dream, so he went to the province of Galilee
\v 9 \f + \ft The best ancient copies omit the sentence that some versions include at v. 9. \fqa For the Son of Man came to save that which was lost \fqa* . \f*

\v 10 \x - \xo 1.10: \xt Mrk 1.24; Luk 2.39; Jhn 1.45.\x* and made his home in a town named Nazareth. And so what the prophets had said came true: “He will be called a Nazarene.”
\p
\v 11 “Why do you call me good?” Jesus asked him. “No one is good except God alone.
Expand Down

0 comments on commit b993a76

Please sign in to comment.