You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VCard 2.1 specification section 2 (Delimiters) says:
""""
A formatted text line break in a property value, must also be represented by a
(RFC 822) line break, which is a CRLF sequence. However, since the CRLF
sequence is used to delimit a line, property values with formatted line breaks
(i.e., multiple lines) must be encoded using an alternate encoding of either
Quoted-Printable or Base64, as defined in RFC 1521.
""""
To reproduce the problem:
VCard vcard = new VCard();
vcard.addNote(new NoteType("Line one\r\nLine two"));
StringWriter writer = new StringWriter();
new VCardWriter(writer, VCardVersion.V2_1).write(vcard);
System.out.println(writer);
Actual output is:
BEGIN:VCARD
VERSION:2.1
NOTE:Line one\nLine two
X-PRODID:ez-vcard 0.6.0
END:VCARD
Expected output is:
BEGIN:VCARD
VERSION:2.1
NOTE;ENCODING=QUOTED-PRINTABLE:Line one=0D=0ALine two
X-PRODID:ez-vcard 0.6.0
END:VCARD
Original issue reported on code.google.com by dna...@gmail.com on 2 Jan 2013 at 8:48
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
dna...@gmail.com
on 2 Jan 2013 at 8:48The text was updated successfully, but these errors were encountered: