Open
Bug 465613
Opened 16 years ago
Updated 2 years ago
'Save Page As' saves text files with wrapped lines with extra newline characters
Categories
(Firefox :: File Handling, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: p.willis, Unassigned)
Details
Attachments
(1 file)
235 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4 When saving a page containing text, if the browser window is set so that long text lines are wrapped, the page gets saved containing the additional newline characters. This is a problem if the browser is displaying a delimited text file with wrapped lines. Essentially the delimited text becomes useless for importing into anything. Reproducible: Always Steps to Reproduce: 1. Make a PHP file to serve from HTTP server: <?php echo "THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT THIS IS A SINGLE LINE WITH REPEATING TEXT "; ?> 2.View the page URL with firefox. 3.Move the browser window so that the text wraps in the view 4.[File>Save Page As...] and save the page as a text file (while wrapped on screen) 5. Look at the saved text file with an editor. 6. note the additional newline characters Actual Results: text is saved containing additional newline characters as viewed in the browser display window Expected Results: text should only contain the characters sent from the server with no embellishments provided by browser.
Comment 1•14 years ago
|
||
I can confirm this is still broken in 3.6.3 on Windows XP. However, this is not limited to just text files: When saving a HTML page with inline javascript (in my case in an onclick attribute), those are wrapped as well. When this inserts a newline inside a string constant, the javascript breaks, making the saved page useless. This seems to be specific to Windows XP, or at least I couldn't reproduce this on 3.5.6 on Debian Linux. The problem also seems to occur only when saving a complete webpage, not when saving HTML only. It occurs both when the page being viewed is online as well as when it is a local file. I'm attaching a simple html file containing a javascript alert() in the body onload tag with a long string, showing the problem.
Comment 2•14 years ago
|
||
Updated•13 years ago
|
Version: unspecified → 3.6 Branch
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•