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

vCard v2.1 (un-)folding: Do not use v3.0/v4.0 folding mechanism #690

Open
respiranto opened this issue Sep 23, 2024 · 0 comments
Open

vCard v2.1 (un-)folding: Do not use v3.0/v4.0 folding mechanism #690

respiranto opened this issue Sep 23, 2024 · 0 comments

Comments

@respiranto
Copy link

v2.1 uses a different folding mechanism to v3.0 and v4.0.

Currently the same mechanism is used as for v3.0 and v4.0.

The docs (vCard 2.1 specs (section 2.1.3), RFC 822#3.1.1) are somewhat confusing (notably, the examples do not match the description), but they say "Unfolding is accomplished by regarding CRLF immediately followed by a LWSP-char as equivalent to the LWSP-char." (LWSP-char is SPACE or HTAB.)

Thus, what I would expect is that unfolding translates \r\n[ \t] to a single SPACE or HTAB, respectively.

W.r.t. folding, the best bet is likely not to fold at all, given that the v2.1 specs do not seem to say anywhere that folding SHOULD or MUST be done. Otherwise, folding should probably only happen on SPACE or HTAB.

@respiranto respiranto changed the title v2.1 (un-)folding: Do not use v3.0/v4.0 folding mechanism vCard v2.1 (un-)folding: Do not use v3.0/v4.0 folding mechanism Sep 24, 2024
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