Join mails with comma

This commit is contained in:
Matthias Beyer 2018-03-12 14:43:20 +01:00
parent 252046583a
commit af4fadf104

View file

@ -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())); .map(|c| c.raw().clone()).unwrap_or(String::new()));
data.insert("EMAIL" , vcard.email() 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() data.insert("FN" , vcard.fullname()
.into_iter().map(|c| c.raw().clone()).collect()); .into_iter().map(|c| c.raw().clone()).collect());