branch: externals/org-contacts
commit cbf1f189381e7fd1727ed7afe0b525a39c806722
Author: stardiviner <numbch...@gmail.com>
Commit: stardiviner <numbch...@gmail.com>

    Fix vCard exporting property CATEGORIES delimiter
    
    This way, the property CATEGORIES in the vcard file are properly
    delimited by a single comma, and not a whitespace.
---
 org-contacts.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/org-contacts.el b/org-contacts.el
index 63d29a9b06..215ec4168a 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1372,7 +1372,9 @@ to do our best."
          (bday (org-contacts-vcard-escape (cdr (assoc-string 
org-contacts-birthday-property properties))))
          (addr (cdr (assoc-string org-contacts-address-property properties)))
          (nick (org-contacts-vcard-escape (cdr (assoc-string 
org-contacts-nickname-property properties))))
-         (categories (mapconcat (lambda (str) (concat " " str)) (delq "" 
(string-split (cdr (assoc-string "TAGS" properties)) ":"))))
+         (categories (mapconcat (lambda (str) (concat "" str))
+                                (delq "" (string-split (string-trim (cdr 
(assoc-string "TAGS" properties)) ":" ":") ":"))
+                                ","))
          (head (format "BEGIN:VCARD\nVERSION:3.0\nN:%s\nFN:%s\n" n name))
          emails-list result phones-list)
     (concat

Reply via email to