Skip to content

Commit 839491c

Browse files
authored
A potential bug (#136)
- fixing the value of the `end` variable - the index of the text end - this should match with all the conditions where `end` is used - discovered while aligning FantasyCoref with its original texts - Martin checked that the update doesn't violate processing of LitBank, for which the block was originally designed for
1 parent 6fa47ab commit 839491c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

udapi/block/read/addtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def process_document(self, document):
3232
self.finished = True
3333
return
3434
text = ''.join(self.filehandle.readlines())
35-
i, end, was_newpar = 0, len(text), True
35+
i, end, was_newpar = 0, len(text)-1, True
3636
while i <= end and text[i].isspace():
3737
i += 1
3838

0 commit comments

Comments
 (0)