Merge pull request #1335 from matthiasbeyer/imag-contact/list-pretty

imag-contact: Join mails with comma
This commit is contained in:
Matthias Beyer 2018-03-12 17:07:01 +01:00 committed by GitHub
commit b374f21d7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());