-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
string conversion of summary field converts "," to "\," #127
Comments
Skimming over the iCalendar RFC it seems to be a feature, at least for value type TEXT. But it is entirely dependent on the key you're having! |
In src/icalendar/prop.py, the 'categories' entry should not have type 'text' (in
More specifically, method vText.to_ical() (in src/icalendar/prop.py) calls escape_char (in src/icalendar/parser.py) which escapes ",". I guess a new type ( |
You can read from the quoted RFC that the 'text' type in 'categories' entry is actually right. There's no type "list" in iCalendar, there's just multiple values, but that's not applicable to TEXT values. |
The quoted RFC is ambiguous about the type TEXT since this type may be both a single value or a list. Quoting the TEXT specification: Thus, some properties (e.g. From my point of view, icalendar should either:
|
Ah, sorry, you're right, I did not notice that and it actually makes sense why the comma should be escaped in TEXT, then. The value type of CATEGORIES is still TEXT, though. |
when the calendar event summary field contains a string with a comma, for example
"key=value1,value2"
the to_ical() function converts the above string to: "key=value1,value2"
Is this a bug or a feature?
thanks - bob s.
The text was updated successfully, but these errors were encountered: