mangstadt / ez-vcard

A vCard parser library for Java
Other
398 stars 92 forks source link

Default line folding line length is not null #139

Open KlyukinSA opened 1 year ago

KlyukinSA commented 1 year ago

Now to create usual plain text I have to do like so:

VCardWriter writer = ...;
writer.getVObjectWriter().getFoldedLineWriter().setLineLength(null);
writer.write(vcard);

p.s. line folding is adding "\n " in text so it's lines are not longer than 75 (or other number). it is convenient to read but it breaks urls and encoded data

mangstadt commented 1 year ago

The program that consumes the vCard is responsible for unfolding any folded lines. However, you can disable line folding if you choose, as you have done.