#!/usr/bin/python def fixvCard(vca): #"BEGIN:VCARD VERSION:2.1 N:Welz;Dieter;;; FN:Dieter Welz ORG: END:VCARD" end = "\n" vca = vca.replace('"', '') vca = vca.replace('BEGIN:VCARD ', 'BEGIN:VCARD'+end) vca = vca.replace(' END:VCARD', end+'END:VCARD') vca = vca.replace(' N:', end+'N:') vca = vca.replace(' FN:', end+'FN:') vca = vca.replace(' ORG:', end+'ORG:') vca = vca.replace('VERSION:2.1', 'VERSION:3.0') return vca