{"version":"2.1.333","anchor":"trailing-newline-trim-now-happens-after-edit-transform","canonical_anchor":"trailing-newline-trim-now-happens-after-edit-transform","heading":"Trailing newline is now trimmed after an edit is applied, not before","tier":"internal","area":"File Tools","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/trailing-newline-trim-now-happens-after-edit-transform","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Trailing newline is now trimmed after an edit is applied, not before\n\nWhen preparing file content, Claude Code now removes a single trailing newline after applying an edit instead of before\n\n**What**\n\nWhen Claude Code prepares the content of a file, it removes a single trailing newline (the line break at the very end). It now does this after the edit is applied to the content, where before it did it first. Content ending in two line breaks is still left alone.\n\n**Why**\n\nThe order can affect whether a file ends with a line break after an edit, so the final line of edited files may come out differently than before.\n\n- Area: File Tools\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}