Avoid breaking up words during wrapping when possible (#47)

This commit is contained in:
Ulyssa 2023-03-05 12:59:34 -08:00
parent 54a0e76823
commit ac6ff63d25
No known key found for this signature in database
GPG key ID: 1B3965A3D18B9B64
3 changed files with 317 additions and 55 deletions

View file

@ -710,7 +710,11 @@ impl Message {
key
};
emojis.push_str(format!("[{name} {count}]"), style);
emojis.push_str("[", style);
emojis.push_str(name, style);
emojis.push_str(" ", style);
emojis.push_span_nobreak(Span::styled(count.to_string(), style));
emojis.push_str("]", style);
reactions += 1;
}