[Bug 297541] New: kaddressbook doesn't handle line breaks correctly in the notes field.

Divan Santana divan at s-tainment.co.za
Thu Apr 5 16:43:26 BST 2012


https://bugs.kde.org/show_bug.cgi?id=297541

            Bug ID: 297541
          Severity: normal
           Version: unspecified
          Priority: NOR
                CC: tokoe at kde.org
          Assignee: kdepim-bugs at kde.org
           Summary: kaddressbook doesn't handle line breaks correctly in
                    the notes field.
    Classification: Unclassified
                OS: Linux
          Reporter: divan at s-tainment.co.za
          Hardware: Archlinux Packages
            Status: UNCONFIRMED
         Component: general
           Product: kaddressbook

SUMMARY
If one creates a contact on a platform that creates a contact with the notes
field filled in as per below syntax:
$ cat Firstname_Surname.vcf 
BEGIN:VCARD
EMAIL:"Firstname Surname" <Firstname.Surname at example.org>
FN:Firstname Surname
N:Surname;Firstname;;;
NOTE:This is line one of the notes field\\NThis is line two of the notes fi
 eld\\NThis is line three of the notes field
UID:8e548460-3843-4e39-9d71-19c7dad93864:521756
VERSION:3.0
END:VCARD

Then it doesn't correctly display the line breaks.

STEPS TO REPRODUCE
1. Create a contact with the notes field populated as per:
NOTE:This is line one of the notes field\\NThis is line two of the notes fi
 eld\\NThis is line three of the notes field

Instead of the norm(whatever that is):
One can do this by
a) An Android phone syncing with Kontact via Zimbra
b) create the contact on a groupware server like Zimbra
or rather (and ease to reproduce this problem)
c) Simply import a contact formulated in this manner.
Import this contact:
$ cat Firstname_Surname.vcf 
BEGIN:VCARD
EMAIL:"Firstname Surname" <Firstname.Surname at example.org>
FN:Firstname Surname
N:Surname;Firstname;;;
NOTE:This is line one of the notes field\\NThis is line two of the notes fi
 eld\\NThis is line three of the notes field
UID:8e548460-3843-4e39-9d71-19c7dad93864:521756
VERSION:3.0
END:VCARD

WHAT HAPPENS
2. View this contact in kaddress book. You notice the notes field is not nicely
displayed in kaddressbook search view. Rather you see 

Notes
This is line one of the notes field\NThis is line two of the notes field\NThis
is line three of the notes field

WHAT SHOULD HAPPENS
2. View this contact in kaddress book. You notice the notes field is nicely
displayed in kaddressbook search view. You see 
This is line one of the notes field
This is line two of the notes field
This is line three of the notes field

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list