-
Notifications
You must be signed in to change notification settings - Fork 45
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
Word broken even though it would fit on line #99
Labels
Comments
Bisecting shows that this was introduced back in version 0.7.0 in commit 4313d58 (Wrapper::wrap: return Vec<Cow> instead of Vec). |
The above test case can be simplified to just #[test]
fn test_very_ragged() {
assert_eq!(textwrap::wrap("aaabbbccc x yyyzzzwww", 9),
vec!["aaabbbccc", "x", "yyyzzzwww"]);
} |
mgeisler
added a commit
that referenced
this issue
Dec 17, 2017
We did not reset the in_whitespace flag immediately when seeing a non-whitespace character. This meant that single character words could be split incorrectly. Fixes #99.
mgeisler
added a commit
that referenced
this issue
Dec 17, 2017
We did not reset the in_whitespace flag immediately when seeing a non-whitespace character. This meant that single character words could be split incorrectly. Fixes #99.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This test case fails, even though the
"qqqqqqqqq"
word is only 9 characters long:It fails with
The text was updated successfully, but these errors were encountered: