Closed Bug 495950 Opened 15 years ago Closed 15 years ago

When you copy a page source, you got blank lines

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 198391

People

(Reporter: gastonjareno, Unassigned)

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10

When you shows a Page Source you can select all and copy it to clipboard.  Then you can paste it in any program, for example notepad.  When you do it with a page source with no blank lines a, random blank lines appears on the copied source.

Reproducible: Always

Steps to Reproduce:
1. Open an html page with no blank lines
2. Go to Page Source
3. Choose Edit - Select All
4. Choose Edit - Copy
5. Open a NotePad
6. Paste the copied source.
Actual Results:  
The copied source has blank lines in apparently random places.

Expected Results:  
The copied source should have no blank lines, as the original html source.
What do you mean ? Can you show us an example of such a page where this happens ? I see no difference between the code in the Page Source window, and after being copied into a different application.
Attached file Sample html
You can try with this html page, but it happens to me with any page I've tried.  But it's shown more clearly with pages with originaly has no blank lines.
When I open example.html and copy the source to notepad I got this.  Note that it has 2 blank lines and example.html has none.  When the html is bigger you got more blank lines.
I've upload an example.  Obviuosly the blank lines are on source code and has no effect on the result of viewing it on a browser.

Thanks!
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: