4.82 KB, text/html
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 When I copy the source of a page in view source window often I got additional empty lines when I paste it. It does not matter whether I select all source with <ctrl-a>, copy it by using <ctrl-c> and paste with <ctrl-v> in textarea in another window of Mozilla or select a fragment by mouse and paste with middle-click to another application - both generate this empty lines and both in the same place. In the URL I gave for example a line is generated before: <p> In the 14 years of its existence, the Stefan Batory Foundation has Reproducible: Always Steps to Reproduce: 1. Open page: http://www.batory.org.pl/english/history.html 2. View its source 3. Copy the source 4. Paste to another application or any textarea Actual Results: (...) cross-border projects. The programs organized in the past 14 years attracted thousands of influential leaders and opinion makers from CEE, Baltic and Balkan countries, Caucasus and Central Asia. <p> In the 14 years of its existence, the Stefan Batory Foundation has distributed 15,000 grants and scholarships, spending a total of US$80 (...) Expected Results: (...) cross-border projects. The programs organized in the past 14 years attracted thousands of influential leaders and opinion makers from CEE, Baltic and Balkan countries, Caucasus and Central Asia. <p> In the 14 years of its existence, the Stefan Batory Foundation has distributed 15,000 grants and scholarships, spending a total of US$80 (...)
Not a viewsource issue....
I have seen this same issue in Mozilla 1.4 on Windows XP. If I view the source of a web page in Mozilla there are all kinds of blank lines thrown in in random places. When I view the same source in IE the extra lines are not there. I'm curious to know what is causing this.
Created attachment 134172 [details] inserts new line after every occurrence of "gazeebo" While the source looks fine in mozilla's source viewer, if you copy/paste it into another text editor, you will notice that there is an extra new line inserted after every occurrence of "gazeebo."
> if you copy/paste it into another text editor... Sorry, I should have been more explicit. I meant to say: "if you copy and paste all of the html source from Mozilla's source viewer into another text editor(e.g. Notepad)..."
Tom, Are you suggesting that you have found the problem, or did you create the modified testcase after seeing the problem (i.e. changing badger to gazeebo before any newlines you saw)? If you have an idea of what's causing the problem, you should let us know. Otherwise, the only thing I can surmise from the testcase you provided is that a newline is being generated after every 18th line of the source. However, when I copy and paste the source of another website, it isn't so consistent and seems more random. Hmm...
It seems to be the ampersands that are messing it up. Probably related to # 198648.
I see the same problem on this page: http://tjl73.altervista.org/xface_PGP.html The source is signed with an OpenPGP clear signature, but to verify it I must save&verify, because viewing source, copyting, and verifying the clipboard content leads to a "BAD sigunature message. It seems that some empty lines appear sometimes before a <TD> tag.
*** Bug 312159 has been marked as a duplicate of this bug. ***
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051119 Firefox/1.6a1 I can repro on Win too.
Additional new-line by "Copy&Paste" from "View Page Source" screen is a result of "[CRLF]</pre>" of internal HTML data in "View Page Source" display in many cases. Try next steps. (1) "View Page Source" at this bug's display. (2) At "View Page Source" screen ( chrome://navigator/content/viewSource.xul?url=https%3A ... %3D198391 ) - "Select All" thru context menu - "View Selection Source" thru context menu (3) At "View Selection Source" screen ( chrome://navigator/content/viewPartialSource.xul?url=view-source ... ) You will see '<pre id="line1">...' line and '</pre><id="line15">...' line. Display of '</pre><id="line15">...' line at step (3) means that the internal HTML data at step (2) is '[CRLF]</pre><id="line15">'. Because "Copy&Paste" at "View Page Source" screen is extracting of text data of this HTML, additional new-line appears when 'Copy&Paste'ed at step (2), although displayed screen at step (2) is same as original source text display including line-break. This additional new-line can be avoided by removing [CRLF] just before '</pre>'.
*** Bug 198648 has been marked as a duplicate of this bug. ***
*** Bug 356648 has been marked as a duplicate of this bug. ***
It seems this bug is fixed in Firefox 11.0a1 version 2011-12-02-03-10-55-mozilla-central. Probably fixed during fixing bug 482921, namely changeset 06eab34f121a: https://hg.mozilla.org/mozilla-central/rev/06eab34f121a
6 years ago
I believe this was fixed by bug 695640.