Skip to content

Commit

Permalink
Don't preserve _curTextType across verses.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnml1135 committed Jul 12, 2024
1 parent b486867 commit 5083455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ private void UpdateVerseRef(VerseRef verseRef, string marker)
{
_curElements.Clear();
_curElements.Push(new ScriptureElement(0, marker));
_curTextType.Clear();
}
_curVerseRef = verseRef;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/SIL.Machine.Tests/Corpora/UsfmMemoryTextTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void GetRows_multichapter_nonverse()
includeAllText: true
);

Assert.That(rows, Has.Length.EqualTo(5));
Assert.That(rows, Has.Length.EqualTo(3));
}

private static TextRow[] GetRows(string usfm, bool includeMarkers = false, bool includeAllText = false)
Expand Down

0 comments on commit 5083455

Please sign in to comment.