From dfdafcd11c83ef467f0f21259b12da8338fef63d Mon Sep 17 00:00:00 2001 From: otrekw <42574358+otrekw@users.noreply.github.com> Date: Tue, 30 Oct 2018 15:21:17 +0100 Subject: [PATCH] Fixed Issue #133 with string separation Fixes the behaviour of adding ; to strings in ORG field --- vobject/vcard.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vobject/vcard.py b/vobject/vcard.py index 1941e82..d1846bc 100644 --- a/vobject/vcard.py +++ b/vobject/vcard.py @@ -268,6 +268,8 @@ def serializeFields(obj, order=None): If order is None, obj should be a list, backslash escape each field and return a ';' separated string. """ + if isinstance(obj, str): + return obj + ';' fields = [] if order is None: fields = [backslashEscape(val) for val in obj]