mirror of
https://github.com/youwen5/iamb.git
synced 2025-08-04 11:38:28 -07:00
Avoid breaking up words during wrapping when possible (#47)
This commit is contained in:
parent
54a0e76823
commit
ac6ff63d25
3 changed files with 317 additions and 55 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue