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

Introduce a new configuration option 'truncate_on_natural_separator' to change or remove natural separator #283

Merged
merged 2 commits into from
Dec 26, 2023

Conversation

kpumuk
Copy link
Owner

@kpumuk kpumuk commented Dec 26, 2023

With this change a new configuration setting is introduced: truncate_on_natural_separator can be used to change the natural separator from the default value of " " (space character) to another value or nil to disable natural separator. This also allows to use a whitespace regular expression (/\s/), a unicode space (/\p{Space}/).

Closes #281

@kpumuk kpumuk changed the title Introduce a new configuration option 'truncation_natural_separator' to change or remove natural separator Introduce a new configuration option 'truncate_on_natural_separator' to change or remove natural separator Dec 26, 2023
@kpumuk kpumuk merged commit 6f40531 into main Dec 26, 2023
25 checks passed
@kpumuk kpumuk deleted the truncation branch December 26, 2023 21:16
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.

Unexpected truncation in languages that do not use word divider
1 participant