Skip to content

Commit

Permalink
Merge pull request #125 from missionfloyd/vcard
Browse files Browse the repository at this point in the history
Don't include blank vcard/mecard fields
  • Loading branch information
heuer authored Oct 19, 2023
2 parents f97e0d9 + 6bb2fc0 commit 41c97c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions segno/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def make_mecard_data(name, reading=None, email=None, phone=None, videophone=None
:rtype: str
"""
def make_multifield(name, val):
if val is None:
if not val:
return ()
if isinstance(val, str_type):
val = (val,)
Expand Down Expand Up @@ -301,7 +301,7 @@ def make_vcard_data(name, displayname, email=None, phone=None, fax=None,
:rtype: str
"""
def make_multifield(name, val):
if val is None:
if not val:
return ()
if isinstance(val, str_type):
val = (val,)
Expand Down

0 comments on commit 41c97c1

Please sign in to comment.