Copy contents -button adds line breaks

The copy-contents button adds extra line breaks.
Example snippet: Untitled (aduxnqrd) - PasteCode.io

Add javascript:
https://i.imgur.com/B9YHD7p.png

Manually select the script and copy with Ctrl+C and paste in Notepad++. looks fine: https://i.imgur.com/J2eTIme.png

Copy with the “Copy contents” button and paste to Notepad++, extra line breaks: https://i.imgur.com/GKKT5CK.png

We tried to reproduce this on our side by copying the same snippet using the “Copy contents” button and pasting into Notepad++ (and a couple of other editors), but we’re not seeing any extra line breaks — it pastes identically to a manual Ctrl+C copy.

A couple of things that might help narrow it down:

  • Try pasting into a plain text target like Windows Notepad or another editor to see if it only happens in a specific app.
  • If you’re using any browser extensions (clipboard managers, formatting helpers, etc.), could you try disabling them and re-testing?
  • Also, which browser + OS version are you on?

If you can share the exact editor settings in Notepad++ (EOL mode / “Paste special” behavior) or a short screen recording, we can dig deeper.

did some more testing in different browser. it only adds the extra line breaks in firefox. Both edge and chrome does not. I’ve tested firefox also with all extensions disabled just to be sure. Same bad behaviour.

I’m on windows 10, I don’t use any extra programs or apps for clipboard. Regular copy/paste with Ctrl+C works like it should. Only your copy button adds the extra line breaks.

If I use the copy button and paste it directly into a new pastecode window, I also get extra line breaks, so it’s completely unrelated to where I paste it.

ps. why are you back-dating the date and time on my post? I posted this question like 3 weeks ago, but you make it look like you responded instantly.

On the copy issue: since Ctrl+C works correctly and the extra line breaks only happen with our copy button, that points to our copy implementation rather than anything on your Windows/clipboard setup. We’ve replaced the library we were using with a more modern approach, and it’s specifically intended to prevent these newline/formatting artifacts. Could you please test the copy button again now and tell us if the extra line breaks still appear?

On the post date/time: we’re not trying to mislead or “back-date” anything. What’s happening is that new accounts’ posts can sit in an “approval” state for a while. Once a post is approved, the forum currently updates the visible post timestamp to the approval time. Since we also replied right after approving it, our reply can appear “instant” even if you originally submitted the post weeks earlier. It’s a limitation of how the community forum displays approved posts — and since it’s a community forum, we don’t have an SLA for response times anyway.

I can confirm the fix seems to work. I no longer get extra line breaks when copying the example snippet in the first post.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.