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
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;
}