This commit is contained in:
2023-05-27 22:44:33 +02:00
parent 314af77226
commit 42877a5557

View File

@@ -175,12 +175,13 @@ impl Format for Book {
fn format(&self, max_size: u32) -> String {
let book_title = {
let Book { title, lang, .. } = self;
format!("📖 {title} | {lang}\n")
};
let pages_count = match self.pages {
Some(1) | None => "".to_string(),
Some(v) => format!("[ {v}с. ]\n\n"),
Some(v) => format!(" [ {v}с. ]\n\n"),
};
format!("📖 {title} | {lang}{pages_count}\n")
};
let annotations = match self.annotation_exists {