Skip to content
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

Semicolons in values #137

Open
untitaker opened this issue May 29, 2014 · 0 comments
Open

Semicolons in values #137

untitaker opened this issue May 29, 2014 · 0 comments

Comments

@untitaker
Copy link
Contributor

I realize that icalendar is not supposed to be used for parsing VCARDs, but i do it anyway because the alternative libraries don't seem to be very well maintained (i use the Collection class directly for this). It is no surprise that it does not do what i want:

# variable text
ADR;TYPE=POSTAL:;2822 Email HQ;Suite 2821;RFCVille;PA;1521$;USA

# Component.from_ical(text).to_ical(text)
ADR;TYPE=POSTAL:\;2822 Email HQ\;Suite 2821\;RFCVille\;PA\;1521$\;USA

It seems that subclasses of Collection seem to be able to set special attributes such as required, singletons etc to influence the parsing behavior. I propose such a new attribute which keeps icalendar's parser from escaping semicolons in certain values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant