5

When you follow a "Source" link on a post's /revisions (versions) page and copy and paste it the line endings are doubled. (Windows 10 Firefox)

(It happens in and out of code blocks. My example happens to be just a code block.)

When I paste the cut text into an an online character identifier there are double CRs & a final LF.

A code block that includes fences to cut & paste:

```
1
2

3


4
```

The revisions page version 2 Source page of this post looks like this code block looks (same as above):

```
1
2

3


4
```

Screenshot from Source page (looks the same as above):

per visible text, Screenshot from Source page that looks like the code block immediately above

Cut & paste into editor from Source page:

```

1

2



3





4

```

I have never not seen this happen, and I first saw it at least several years ago. This also happens pasting into a Windows Notepad .txt.

2
  • 1
    reproduced in Firefox on macOS; doesn't happen in Safari Commented Nov 15 at 7:52
  • 3
    Looks like the copy action in Firefox is the problem. If I paste into a text editor or the post editor here in Safari, I also get double lines. When copying from Safari into a text editor, the text editor doesn't like the final LF: i.sstatic.net/OlWaI4G1.png Commented Nov 15 at 8:47

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.