Skip to content

Commit

Permalink
fix: only split on ASCII whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed Sep 2, 2024
1 parent f26ad8a commit ebd72e2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.117"
tailcall = "1.0.1"
tracing = { version = "0.1", default_features = false }
tracing-subscriber = { version = "0.3", default_features = false, features = [
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"env-filter",
"fmt",
"smallvec",
Expand Down
2 changes: 1 addition & 1 deletion src/paragraphs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<'a> Paragraph<'a> {
&mut Vec::with_capacity(line_width / 2),
&mut 0,
&mut 0,
&mut self.words.split_whitespace(),
&mut self.words.split_ascii_whitespace(),
&mut 0,
);
result
Expand Down

0 comments on commit ebd72e2

Please sign in to comment.