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

RFC 6868 - " and \n in parameters #652

Open
5 tasks
niccokunzmann opened this issue Jun 24, 2024 · 0 comments
Open
5 tasks

RFC 6868 - " and \n in parameters #652

niccokunzmann opened this issue Jun 24, 2024 · 0 comments
Labels
feature hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/

Comments

@niccokunzmann
Copy link
Member

niccokunzmann commented Jun 24, 2024

RFC 6868 adds these parsing rules:

When generating iCalendar or vCard parameter values, the following
apply:
o formatted text line breaks are encoded into ^n (U+005E, U+006E)
o the ^ character (U+005E) is encoded into ^^ (U+005E, U+005E)
o the " character (U+0022) is encoded into ^' (U+005E, U+0027)
When parsing iCalendar or vCard parameter values, the following
apply:
o the character sequence ^n (U+005E, U+006E) is decoded into an
appropriate formatted line break according to the type of system
being used
o the character sequence ^^ (U+005E, U+005E) is decoded into the ^
character (U+005E)
o the character sequence ^' (U+005E, U+0027) is decoded into the "
character (U+0022)
o if a ^ (U+005E) character is followed by any character other than
the ones above, parsers MUST leave both the ^ and the following
character in place

With a few test cases, we can support them.

To close this issue:

  • write tests to make sure the input is parsed properly - in a test_rfc_6868.py fie
  • submit the tests in a PR
  • fix the tests
  • add documentation that we now also support this RFC (usage.rst)
  • add yourself as a contributor

See also:

@niccokunzmann niccokunzmann changed the title RFC 6868 RFC 6868 - " and \n in parameters Jun 25, 2024
@niccokunzmann niccokunzmann added the hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/ label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature hacktoberfest Issues for participation in the hacktoberfest https://hacktoberfest.com/
Projects
None yet
Development

No branches or pull requests

1 participant