Added song duration support

This commit is contained in:
Mark
2023-11-04 20:06:54 +01:00
parent 273eac4b43
commit 7cae108ffa
14 changed files with 701 additions and 216 deletions

View File

@@ -34,7 +34,11 @@ pub struct Content {
impl Content {
pub fn new(text: String, color: Color) -> Self {
Self {
text,
text: if text.starts_with(' ') {
text.replacen(' ', "\u{00A0}", 1)
} else {
text
},
color,
background: None,
formatted: None,