diff --git a/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs b/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs index 3fd2eb62..363209ed 100644 --- a/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs +++ b/src/SIL.Machine/Corpora/ScriptureRefUsfmParserHandlerBase.cs @@ -171,7 +171,7 @@ public override void EndNote(UsfmParserState state, string marker, bool closed) public override void Text(UsfmParserState state, string text) { // if we hit text in a verse paragraph and we aren't in a verse, then start a non-verse segment - if (text.Trim().Length > 0 && text.Trim() != "...") + if (text.Trim().Length > 0) CheckConvertVerseParaToNonVerse(state); } diff --git a/src/SIL.Machine/Corpora/UsfmTextBase.cs b/src/SIL.Machine/Corpora/UsfmTextBase.cs index f530fd9a..e3777f08 100644 --- a/src/SIL.Machine/Corpora/UsfmTextBase.cs +++ b/src/SIL.Machine/Corpora/UsfmTextBase.cs @@ -235,11 +235,6 @@ public override void Text(UsfmParserState state, string text) if (_rowTexts.Count == 0) return; - if (text.Trim() == "...") - { - text = ""; - } - StringBuilder rowText = _rowTexts.Peek(); if (_text._includeMarkers) { @@ -279,6 +274,10 @@ protected override void StartVerseText(UsfmParserState state, IReadOnlyList scriptureRefs) { string text = _rowTexts.Pop().ToString(); + if (text.Trim() == "...") + { + text = ""; + } _rows.AddRange(_text.CreateRows(scriptureRefs, text, _sentenceStart)); _sentenceStart = state.Token.Marker == "c" || text.HasSentenceEnding(); }