Follow Discord
Sweep 20 Nov 2026 · 19:55Z Build v2.1.330 547 read Stable v2.1.323 Latest v2.1.330 Next v2.1.330 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.327 ·

Edits that delete text may treat the following newline differently

Text replacement in edits no longer has a special case that also removes a trailing newline when text is deleted

You'll notice Improvements
JSON All of v2.1.327
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
Edit ToolArea: what it touches
ImprovementsKind: in v2.1.327,
ImprovementsSection of the release

Unclear It is not clear whether deletions still remove the newline after the deleted text.

What

When Claude edits a file by replacing one piece of text with another, Claude Code used to treat deletions (replacing text with nothing) specially by also removing a newline that followed it. That special case is gone. Claude Code now first looks for an alternative piece of text to replace, and uses it if the file contains it, otherwise it replaces the original text.

Why

Edits that delete text may leave whitespace differently than before.

How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear whether deletions still remove the newline after the deleted text.

See this entry in the whole of v2.1.327 →

Feedback