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

            Bug ID: 297541
          Severity: normal
           Version: unspecified
          Priority: NOR
                CC: to...@kde.org
          Assignee: kdepim-bugs@kde.org
           Summary: kaddressbook doesn't handle line breaks correctly in
                    the notes field.
    Classification: Unclassified
                OS: Linux
          Reporter: di...@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.surn...@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.surn...@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.
_______________________________________________
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs

Reply via email to