Replace newlines with spaces
This commit is contained in:
parent
be2cca1807
commit
704f5ec0d6
|
@ -149,6 +149,9 @@ impl EventHandler for Handler {
|
|||
}
|
||||
}
|
||||
|
||||
computed = computed.replace('\n', " ");
|
||||
computed = computed.replace("\r\n", " "); // just in case
|
||||
|
||||
let chars = computed.as_bytes().iter().map(|&b| b as char).collect::<Vec<char>>();
|
||||
let chunks = chars.chunks(content_limit);
|
||||
|
||||
|
|
Loading…
Reference in a new issue