Closed Bug 292554 Opened 20 years ago Closed 20 years ago

pre tags format incorrectly with return at eol

Categories

(Firefox :: General, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: novafyre01, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Certain combinations of the <pre> tag and return end-of-line, i.e., CR (0x0d),
don't format correctly. This is a simpler example of similar reported problems.
The attached file demonstrates a rendering problem that happens only when the
file is saved with CR eol.

Additionally, there must be at least one blank character at the end of the
quot-ed line (line 4). Removing the trailing blank obscures the bug. The
identical file renders correctly with LF or CR-LF eol.


Reproducible: Always

Steps to Reproduce:
1. Save file with return eol and trailing blank on line 4.
2. Open file. Render is incorrect.

3a. Remove trailing blank from line 4.
4a. Open file. Render correct.

3b. Save file with linefeed or CR-LF eol.
4b. Open file. Render is correct.
Actual Results:  
    "This is the first line."     This is the second line.

Expected Results:  
    "This is the first line." 
    This is the second line.
File renders incorrectly ONLY with CR eol and ONLY with a trailing blank on
line 4. LF or CR-LF eol, OR CR eol and no trailing blank on line 4 renders
correctly.
The same file 'un-quot-ed' renders corectly as two lines as expected.
At least on Windows, fails in 1.0.3, works on the trunk.
Result with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.7)
Gecko/20050414 Firefox/1.0.3 is
    "This is the first line."     This is the second line.

Result with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b2)
Gecko/20050501 Firefox/1.0+ is
    "This is the first line." 
    This is the second line.

Mark, can you try with a nightly trunk (1.1beta) version of firefox and report
back? Thanks!
http://ftp.uni-erlangen.de/pub/mozilla.org/firefox/nightly/latest-trunk/
> Mark, can you try with a nightly trunk (1.1beta) version of firefox and report
> back? Thanks!
>

Done. The nightly trunk works... the bug is gone -- run from a clean test account.

Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8b2) Gecko/20050501
Firefox/1.0+
    "This is the first line." 
    This is the second line.
Resolved WFM as per comment 3 comment 4 and comment 5
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: