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() {
|
||||
String::default()
|
||||
} else {
|
||||
format!(
|
||||
"\n{}",
|
||||
attachments
|
||||
.iter()
|
||||
.map(|a| {
|
||||
|
@ -71,5 +73,6 @@ fn format_attachments(depth: usize, attachments: &[Attachment]) -> String {
|
|||
})
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n")
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue