Skip to content

Line Break within NoteField not working for long Strings #9

@GoogleCodeExporter

Description

@GoogleCodeExporter
This problem occurs when adding pretty long String to the Notefild and 
importing the vcard into Outlook (I´m using Outlook 2010)

To reproduce the problem:

        VCard vcard = new VCard();
        vcard.addNote(new NoteType("twitter: www.twitter.com/NameName\nlinkedIn: www.linkedin.com/inNameName\nxing: www.xing.com"));

        StringWriter writer = new StringWriter();
        new VCardWriter(writer, VCardVersion.V2_1).write(vcard);
        System.out.println(writer);


Expected Output
When opening the *.vcf file in Outlook, I expect 

twitter:
www.twitter.com/NameName
LinkedIn:
www.linkedin.com/in/NameName
xing:
www.xing.com/profile/NameName

Actual Output:
But what I actual got is:

twitter:
www.twitter.com/NameName
Linked

And that is it. Because within the *.vcf file is a line break after a specific 
number of characters, and everything in the new line isn´t showing in 
Outlook´s Notefield. 
This is really bugging me, because I have pretty long links to put into the 
notefield.
If I don´t use \n for example and write everything inline, there is always a 
space when there is a break in the *.vcf file. And within a link this is a real 
problem, because it should be clickable.  

I attached a screenshot that hopefully makes this more clear. 

EzVcard Version: 0.8.4
Java Version: 1.7


Thank you!

Original issue reported on code.google.com by JulianeD...@gmail.com on 24 Sep 2013 at 10:16

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions