[BUG] Long text blogs insert spurious spaces on line breaks

Resolved 💬 3 comments Opened Feb 26, 2026 by yoelf22 Closed Feb 26, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Whenever Claude generates text (can be simple text, URLs) that I need to cut and paste, line breaks induce spurious spaces, rendering the text unusable.

For example:

<img width="690" height="95" alt="Image" src="https://github.com/user-attachments/assets/69c67bc5-91c2-4c9a-b0d4-ef5ed3f3ddb5" />

The first item is copied, but when pasted in the browser, it yields: "https://hardware-technology-consulting-template.webflow.io/post/what-repeatability-really-mean s-in-production-environments"

(watch the spaces between 'really-mean' and 's-in-production-'

This is consistent.

What Should Happen?

Text copied from a multi-line section should paste in target editors or browser window without spurious spaces

Error Messages/Logs

URL won’t resolve, or paragraphs needs to be scanned for spaces

Steps to Reproduce

Just generate a long (20+ words) text, whether containing URLs or not.
If you have a URL spilling over more than a line, copy it. paste it into Safari (mac).

If it is just a multi line section of text, paste it into Typora (mac). You'll discover it breaks arbitrarily

<img width="642" height="185" alt="Image" src="https://github.com/user-attachments/assets/05e968d6-fae2-404a-9b91-e48a720f7ec3" />

Copying text from Typora back into this window reveals the spaces and line breaks:

"no. there are spurious spaces (after "repeatability-" in the first example, so what I copy

is: "https://hardware-technology-consulting-template.webflow.io/post/what-repeatability-

really-means-in-production-environments " this is repeating pattern across all sessions "

Claude Model

Opus

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.59

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Source text:

<img width="669" height="56" alt="Image" src="https://github.com/user-attachments/assets/acb1e1d1-1bb0-48f4-986b-b1686dcec3a6" />

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗