Closed
Bug 149495
Opened 23 years ago
Closed 22 years ago
Multiline notes on addressbook entries show on single line
Categories
(SeaMonkey :: MailNews: Address Book & Contacts, defect)
Tracking
(Not tracked)
People
(Reporter: scott, Assigned: racham)
Details
Attachments
(1 file)
1.43 KB,
patch
|
Details | Diff | Splinter Review |
Steps to reproduce:
Create (or edit) an addressbook entry.
Go to the "other tab"
Enter a multi-line Comment in the notes field.
Click Ok
Expected Behavior:
vCard view should show comment under "other" spanning multiple wrapping lines.
Actual Behavior:
vCard view shows comment on single line, wrapping.
Comment 2•23 years ago
|
||
confirming (no dups found)
racham, can you review this patch?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 3•23 years ago
|
||
Comment on attachment 86554 [details] [diff] [review]
Proposed patch fixing multiline bug
I don't know enough about the GUI/DOM issues in this code to do the
module-owner review, so you'll have to get that from bhuvan/sspitzer,
I think. However, I see several minor issues which do need to be
dealt with:
a) is splitting on \n going to be sufficient for all platforms (and
not just for local addrbook data, but also stuff coming from the
network, like LDAP)? Or do we need to look at multiple possibilities
like \n || \r || \r\n ? (I don't know the answer to this question;
sspitzer or bhuvan might).
b) please turn on JS strict warnings in the debug preference panel and
be sure this patch doesn't add any new warnings. One thing I think
this will catch is that "var i" is declared twice in this function
(there is no concept of block scope in JS).
c) I think "if (card.notes.length > 0)" can really just be "if
(card.notes.length)", since length should never be negative, as far as
I know.
Anyway, this is just nitpicking; looks good in general.
Attachment #86554 -
Flags: needs-work+
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•