mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 11:30:59 +00:00
textwrap: don't split on all whitespaces ..
but only on ASCII whitespaces, as we want to honor non-breaking whitespaces (\u{a0}) Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1468>
This commit is contained in:
parent
2572afbf15
commit
8f3a6171ac
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ impl TextWrap {
|
|||
|
||||
state.end_ts = buffer.pts();
|
||||
|
||||
let words = data.split_whitespace();
|
||||
let words = data.split_ascii_whitespace();
|
||||
let mut current_text = state.current_text.to_string();
|
||||
|
||||
for word in words {
|
||||
|
|
Loading…
Reference in a new issue