Skip to content

Commit

Permalink
Fixed vCard example
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Nov 11, 2016
1 parent bdb6eeb commit a61c405
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/special-qrcode-factories.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ as vCard version 3.0.
>>> qr.designator
'6-M'
>>> # Some params accept multiple values, like email, phone, url
>>> qr = helpers.make_vcard(name='Doe,John', displayname='John Doe', email=('me@example.org', 'another@example.org'), url=['http://www.example.org', 'https://example.org/~joe'])
>>> qr = helpers.make_vcard(name='Doe;John', displayname='John Doe', email=('me@example.org', 'another@example.org'), url=['http://www.example.org', 'https://example.org/~joe'])
>>> qr.save('my-vcard.svg')
A factory function which returns the vCard as string is available as well.
Expand All @@ -120,9 +120,9 @@ A factory function which returns the vCard as string is available as well.
>>> import segno
>>> from segno import helpers
>>> vcard = helpers.make_vcard_data(name='Doe,John', displayname='John Doe', email='me@example.org', phone='+1234567')
>>> vcard = helpers.make_vcard_data(name='Doe;John', displayname='John Doe', email='me@example.org', phone='+1234567')
>>> vcard
'BEGIN:VCARD\r\nVERSION:3.0\r\nN:Doe,John\r\nFN:John Doe\r\nEMAIL:me@example.org\r\nTEL:+1234567\r\nEND:VCARD\r\n'
'BEGIN:VCARD\r\nVERSION:3.0\r\nN:Doe;John\r\nFN:John Doe\r\nEMAIL:me@example.org\r\nTEL:+1234567\r\nEND:VCARD\r\n'
>>> qr = segno.make(vcard, error='H')
>>> qr.designator
'9-H'

0 comments on commit a61c405

Please sign in to comment.