From 97e2a7bae055d337d315b984e841b55ec3a2c890 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Mon, 14 Apr 2025 14:36:54 -0700 Subject: [PATCH] fix: Correct spacing in patch_coder.py for accurate matching --- aider/coders/patch_coder.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/coders/patch_coder.py b/aider/coders/patch_coder.py index d8c98df16..f656cdb49 100644 --- a/aider/coders/patch_coder.py +++ b/aider/coders/patch_coder.py @@ -126,7 +126,8 @@ class PatchCoder(Coder): if current_action.type == ActionType.UPDATE: # This simplified parser doesn't handle @@ context or chunk boundaries well. # It assumes a simple sequence of context, '-', '+' lines per chunk. - # A real implementation needs the state machine from apply_patch.py's peek_next_section. + # A real implementation needs the state machine from apply_patch.py's + # peek_next_section. # Placeholder: treat consecutive -,+ blocks as single chunk for simplicity. if not current_action.chunks: current_action.chunks.append(Chunk()) # Start first chunk