mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-28 22:41:02 +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/1476>
This commit is contained in:
parent
3a0f30be96
commit
8211c253a8
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