Skip to content

Commit 5e916a5

Browse files
authored
Create a distinct row for each rendering of a term (#310)
1 parent 2184367 commit 5e916a5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/SIL.Machine/Corpora/ParatextBackupTermsCorpus.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public ParatextBackupTermsCorpus(
2828

2929
IText text = new MemoryText(
3030
textId,
31-
glosses.Select(kvp => new TextRow(textId, kvp.Item1) { Segment = kvp.Item2 })
31+
glosses.SelectMany(kvp =>
32+
kvp.Item2.Select(gloss => new TextRow(textId, kvp.Item1) { Segment = new string[] { gloss } })
33+
)
3234
);
3335
AddText(text);
3436
}

0 commit comments

Comments
 (0)