From af4fadf104700b3049b87b417497e49e356e4a42 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Mon, 12 Mar 2018 14:43:20 +0100 Subject: [PATCH] Join mails with comma --- bin/domain/imag-contact/src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/domain/imag-contact/src/util.rs b/bin/domain/imag-contact/src/util.rs index 31f0dad3..78d02621 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::>().join(", ")); data.insert("FN" , vcard.fullname() .into_iter().map(|c| c.raw().clone()).collect());