]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Try to fix CC issue with tabs
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 16:27:21 +0000 (16:27 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 12 Feb 2026 16:27:21 +0000 (16:27 +0000)
CLAUDE.md

index 4c26a96a184cd037c73c3a7ae1062999a974c423..073669f805c400e5a414a3d3c6638726444a7d05 100644 (file)
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -78,3 +78,20 @@ Format: `[Tag] Description`
 Tags: `[Feature]`, `[Fix]`, `[CritFix]`, `[Minor]`, `[Project]`, `[Rework]`, `[Conf]`, `[Test]`, `[Rules]`
 
 All commits must be GPG-signed (`git commit -S`).
+
+## Edit Tool - Whitespace Handling
+
+The Read tool uses `→` to mark where line numbers end and file content begins.
+
+**Rule:** Copy the EXACT whitespace that appears after the `→` marker.
+- Whatever appears between `→` and the code text is what's actually in the file
+- That whitespace must be used EXACTLY in Edit tool's old_string
+- Don't count arrows, don't interpret - just copy what's after the `→`
+
+**Example:**
+14→          private byte tag;
+For Edit, use: `               private byte tag;` (copy everything after →, including the two tabs)
+
+**If Edit fails:** Stop and explain the problem. Do not attempt sed/awk/bash workarounds.
+
+**IMPORTANT**: Trust the Read tool output. Copy what's after `→` into Edit immediately. DO NOT verify with sed/od/grep first - that's wasting time and the instructions already tell you to stop if Edit fails, not to pre-verify.