You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Docs: empty smart_truncate separator raises ValueError only on the word-boundary path #218
The ValueError comes from str.split('') inside the word-boundary branch. Behavior is correct and frozen (legacy); only the wording is wrong. Docs-only fix, no release needed on its own.
Fixed in #217 (docs only): the README and the legacy smart_truncate docstring now say an empty separator raises ValueError only on the word-boundary path (word_boundary=True and the string at least max_length long), and is a plain cut otherwise. Behavior is unchanged; legacy output was verified against the frozen goldens, and tests/test_release.py now pins the non-raising cases.
No release on its own: it is listed under Unreleased in the changelog and ships with the next release. Thanks to Arden for the precise report.
Activity
un33k commentedon Nov 29, 2026
Fixed in #217 (docs only): the README and the legacy
smart_truncatedocstring now say an empty separator raisesValueErroronly on the word-boundary path (word_boundary=Trueand the string at leastmax_lengthlong), and is a plain cut otherwise. Behavior is unchanged; legacy output was verified against the frozen goldens, andtests/test_release.pynow pins the non-raising cases.No release on its own: it is listed under Unreleased in the changelog and ships with the next release. Thanks to Arden for the precise report.
🚀 Generated with Dojo ⛩️