Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #291 +/- ##
==========================================
+ Coverage 70.42% 70.46% +0.03%
==========================================
Files 386 386
Lines 32204 32256 +52
Branches 4531 4539 +8
==========================================
+ Hits 22680 22729 +49
- Misses 8478 8479 +1
- Partials 1046 1048 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ddaspit
left a comment
There was a problem hiding this comment.
Reviewed 4 of 4 files at r1, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @johnml1135)
Fix the embed at beginning issue. Add paragraph marker control Correct behavior for stripping text
* If there is new text, override "preserve" * Preserve just means "don't strip" this tag * Make "preserve" configurable and at the "update" level, not the "scripture" level * Correct logic only stripping paragraphs in a verse - not section headers
ddaspit
left a comment
There was a problem hiding this comment.
Reviewed 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @johnml1135)
src/SIL.Machine/Corpora/ParatextProjectTextUpdaterBase.cs line 31 at r2 (raw file):
UpdateUsfmMarkerBehavior embedBehavior = UpdateUsfmMarkerBehavior.Preserve, UpdateUsfmMarkerBehavior styleBehavior = UpdateUsfmMarkerBehavior.Strip, ImmutableHashSet<string> preserveParagraphStyles = null
It would be better to pass in an interface, i.e. IReadOnlySet, so that the caller has more flexibility.
|
Previously, ddaspit (Damien Daspit) wrote…
Done. |
ddaspit
left a comment
There was a problem hiding this comment.
Reviewed 1 of 3 files at r3, all commit messages.
Reviewable status: 2 of 4 files reviewed, 1 unresolved discussion (waiting on @johnml1135)
src/SIL.Machine/Corpora/UpdateUsfmParserHandler.cs line 36 at r3 (raw file):
private readonly UpdateUsfmMarkerBehavior _embedBehavior; private readonly UpdateUsfmMarkerBehavior _styleBehavior; private readonly IReadOnlySet<string> _preserveParagraphStyles;
If you make this HashSet, then there is no need to cast when you assign the field. Also, I forgot that .NET Standard 2.0 doesn't support IReadOnlySet.
ddaspit
left a comment
There was a problem hiding this comment.
Reviewed 1 of 3 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @johnml1135)
Add tests for beginning-of-verse embeds
Fix the embed at beginning issue (sillsdev/serval#636)
Add paragraph marker control (sillsdev/serval#627)
Always preserve \r and \rem
Correct behavior for stripping text behavior (sillsdev/serval#629)
This change is