-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VCard: Parse Error with multiline list-type notes #8
Comments
It's got to do with |
This is actually happening because of how docstrings (multi-line strings) work with newlines. If I read that same vCard in from a file, it works just fine. What happens is that the newlines get interpreted before vObject has a chance to read in the lines, so your vCard looks like this:
which is obviously invalid due to the line I pointed out. If you want to perform the operation like you do above (using a multi-line string), you need to escape all of your newlines in your |
Import `basestring` from `.base`
I categorize my contacts via VCard's notes field. I enter them as lists, such as:
When I enter such a VCard, it will fail to parse:
VCARD:
COMMAND:
ERROR:
The text was updated successfully, but these errors were encountered: