Closed Bug 321343 Opened 19 years ago Closed 18 years ago

Line breaks in user comments not rendered

Categories

(addons.mozilla.org Graveyard :: Public Pages, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Future

People

(Reporter: michael, Assigned: cameron)

References

Details

Attachments

(1 file)

User-Agent:       Opera/8.50 (Windows NT 5.1; U; de)
Build Identifier: 

Line breaks (or paragraphs) in user comments aren't rendered correctly; even if the comment contained line breaks, it appears as a big (and rather illegible) blob of text in the browser.

Reproducible: Always

Steps to Reproduce:
1. Write a user comment for an extension.  Include some line breaks to split it into multiple paragraphs (to improve legibility).

Actual Results:  
The line breaks have disappeared when the comment is viewed on the website.  Text following a line break is separated from the text preceding it by a mere space character.

Expected Results:  
Text following a line break should start at the beginning of the next line after the text preceding it (i.e. line breaks should be rendered as <br> into the HTML source).
Assignee: Bugzilla-alanjstrBugs → nobody
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: 1.0 → Future
Version: unspecified → 2.0
Agreed. May also want to implement some code to make the maximum number of line breaks 2 at a time.
Not sure how strip_tags and nl2br will work together. Morgamic?
Assignee: nobody → bugs.cameron
Status: NEW → ASSIGNED
Attachment #220382 - Flags: first-review?(morgamic)
Depends on: 333037
Attachment #220382 - Flags: first-review?(morgamic) → first-review+
Thanks, Cameron -- committed.  :)
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: