mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-08-13 09:42:40 +02:00
Added song duration support
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user