-
Notifications
You must be signed in to change notification settings - Fork 92
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
Omitted blank space in multi-line VCard 3 properties #30
Comments
Sorry for the delayed reply. The behavior you cited is normal. Folded lines begin with one or more white space characters. So, if a line begins with 2 spaces, then both of those spaces are removed when the line is unfolded. This can result in the removal of spaces between words, depending on how the line is folded. |
Hello, thanks for your reply. https://tools.ietf.org/html/rfc6350#section-3.2 says:
Where do I find the info about one or more space characters? |
I'm sorry I closed the issue. All this time I thought folded lines could start with multiple whitespace characters. Thanks for pointing this out! I don't know how I missed this... Based on some sample vCard files I have, it appears that some mail clients use multiple whitespace characters to fold base64-encoded data values (this may be how I got confused). ez-vcard will need to be aware of this and correct for it. |
Thanks for having a look into this. |
Fixed in 10c3111 |
When parsing the example from https://tools.ietf.org/html/rfc6350#section-6.2.3:
(two spaces in the second line)
ez-vcard/0.9.7 seems to return the value
This fax number is operational 0800 to 1715EST, Mon-Fri.
(note the missing space before EST).Is this intentional? As far as I have seen, the first " " means "continue from previous line", while the second " " should be taken into account for the property value (but I'm not an expert at that, I just noticed that parsing the example didn't return what I expect).
See also the examples in https://tools.ietf.org/html/rfc6350#section-3.2
The text was updated successfully, but these errors were encountered: