Fix attachment formatting
This commit is contained in:
parent
17e99518ce
commit
4dae4360cc
1 changed files with 17 additions and 14 deletions
|
@ -57,6 +57,8 @@ fn format_attachments(depth: usize, attachments: &[Attachment]) -> String {
|
||||||
if attachments.is_empty() {
|
if attachments.is_empty() {
|
||||||
String::default()
|
String::default()
|
||||||
} else {
|
} else {
|
||||||
|
format!(
|
||||||
|
"\n{}",
|
||||||
attachments
|
attachments
|
||||||
.iter()
|
.iter()
|
||||||
.map(|a| {
|
.map(|a| {
|
||||||
|
@ -71,5 +73,6 @@ fn format_attachments(depth: usize, attachments: &[Attachment]) -> String {
|
||||||
})
|
})
|
||||||
.collect::<Vec<String>>()
|
.collect::<Vec<String>>()
|
||||||
.join("\n")
|
.join("\n")
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue