Closed Bug 416749 Opened 18 years ago Closed 17 years ago

Wrapping fails when line is made up of small blocks of processed (e.g. colored) text

Categories

(Other Applications Graveyard :: ChatZilla, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla-mozilla-20000923, Assigned: krishean)

Details

(Whiteboard: [cz-0.9.83])

Attachments

(2 files, 2 obsolete files)

If you say %C8YELLO! lots of times without spaces, it wont wrap. We generate lots of <span>s for the colours, but with no space or <wbr> between, they wont wrap. Proposed solution: add a <wbr> after each styled <span>.
Note that this is kinda similar to bug 211272, but there I don't think we have an easy way out.
Attachment #321022 - Flags: review?(silver)
Attached file some test cases
Attachment #321023 - Flags: review?(silver)
Attachment #321022 - Attachment is obsolete: true
Attachment #321043 - Flags: review?(silver)
Attachment #321022 - Flags: review?(silver)
Attachment #321043 - Attachment is obsolete: true
Attachment #321314 - Flags: review?(silver)
Attachment #321043 - Flags: review?(silver)
Assignee: rginda → krishean
Comment on attachment 321314 [details] [diff] [review] removed some obsoleted code >+ var wbr = document.createElementNS("http://www.w3.org/1999/xhtml", >+ "html:wbr"); Nit: Line this up. + containerTag.appendChild(wbr.cloneNode(true)); Nit: Use 8 spaces, not 1 tab here. r=silver with those fixed (which I'll do before check-in) Thanks for the patch!
Attachment #321314 - Flags: review?(silver) → review+
Checked in --> FIXED.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.83]
Attachment #321023 - Flags: review?(silver)
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: