Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle more semantic levels of line breaks #9

Merged
merged 4 commits into from
May 23, 2023
Merged

Conversation

benbrandt
Copy link
Owner

Looking through the project gutenberg example books, it was clear that there was semantic meaning in the different levels of newlines beyond just two consecutive line breaks.

This does take a little longer to compute, because some of the chunks are larger, but much better semantic breaks are found when we can discern them from the number of newlines available.

@benbrandt benbrandt marked this pull request as ready for review May 23, 2023 04:30
@codecov
Copy link

codecov bot commented May 23, 2023

Codecov Report

Patch coverage: 97.08% and project coverage change: -0.14 ⚠️

Comparison is base (ebc2c76) 96.79% compared to head (ed9b333) 96.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #9      +/-   ##
==========================================
- Coverage   96.79%   96.65%   -0.14%     
==========================================
  Files           5        5              
  Lines         374      419      +45     
==========================================
+ Hits          362      405      +43     
- Misses         12       14       +2     
Impacted Files Coverage Δ
src/lib.rs 96.78% <97.08%> (-0.16%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@benbrandt benbrandt merged commit a534137 into main May 23, 2023
@benbrandt benbrandt deleted the more-line-breaks branch May 23, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant