summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-03-12 17:07:01 +0100
committerGitHub <noreply@github.com>2018-03-12 17:07:01 +0100
commitb374f21d7cecd786948092ae89f0f50113d1b422 (patch)
treeaf19f74dbcd037e85efbbb1e765ddd864b1ad1dc
parentbbd05700133dc201764160b9d465c5a3b854ebd1 (diff)
parentaf4fadf104700b3049b87b417497e49e356e4a42 (diff)
downloadimag-b374f21d7cecd786948092ae89f0f50113d1b422.zip
imag-b374f21d7cecd786948092ae89f0f50113d1b422.tar.gz
Merge pull request #1335 from matthiasbeyer/imag-contact/list-pretty
imag-contact: Join mails with comma
-rw-r--r--bin/domain/imag-contact/src/util.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/domain/imag-contact/src/util.rs b/bin/domain/imag-contact/src/util.rs
index 31f0dad..78d0262 100644
--- a/bin/domain/imag-contact/src/util.rs
+++ b/bin/domain/imag-contact/src/util.rs
@@ -44,7 +44,7 @@ pub fn build_data_object_for_handlebars<'a>(i: usize, hash: String, vcard: &Vcar
.map(|c| c.raw().clone()).unwrap_or(String::new()));
data.insert("EMAIL" , vcard.email()
- .into_iter().map(|c| c.raw().clone()).collect());
+ .into_iter().map(|c| c.raw().clone()).collect::<Vec<_>>().join(", "));
data.insert("FN" , vcard.fullname()
.into_iter().map(|c| c.raw().clone()).collect());