Skip to content

Commit

Permalink
Remove obsolete handling of \d marker
Browse files Browse the repository at this point in the history
  • Loading branch information
ddaspit committed Jun 22, 2024
1 parent 4e88953 commit dd4b7ab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ IReadOnlyList<UsfmAttribute> attributes
if (_curVerseRef.IsDefault)
UpdateVerseRef(state.VerseRef, marker);

if (!state.IsVerseText || marker == "d")
if (!state.IsVerseText)
{
StartParentElement(marker);
StartNonVerseText(state);
Expand Down
11 changes: 9 additions & 2 deletions tests/SIL.Machine.Tests/Corpora/TestData/usfm/Tes/41MATTes.SFM
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,11 @@
\tr \tc1-2
\v 10 \tc3-4 \qt-s |Jesus\*Chapter 2 verse 10\qt-e\*
\v 11-12
\restore restore information
\c 3
\cl PSALM 3
\s1 Section 1
\mt1 Major Title 1
\d \va (1)\va* Description
\d \va (1)\va* Non-verse descriptive title
\q1
\v 1 \va 2\va*\vp 1 (2)\vp* Chapter 3 verse 1.
\q1 3.1 part 2
Expand All @@ -67,3 +66,11 @@
\q1 3.1 part 4
\c 4
\v 1
\c 5
\d
\v 1 Verse descriptive title
\c 6
\b
\q1
\s
\restore restore information

0 comments on commit dd4b7ab

Please sign in to comment.