From a0f9989f1c43ef2a9c3cb301e88242f086076ba3 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 20 Aug 2024 13:28:48 -0700 Subject: [PATCH] style: format shell code block starts --- aider/coders/editblock_coder.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/aider/coders/editblock_coder.py b/aider/coders/editblock_coder.py index 34b09fc5e..8f4a5a04b 100644 --- a/aider/coders/editblock_coder.py +++ b/aider/coders/editblock_coder.py @@ -409,13 +409,18 @@ def find_original_update_blocks(content, fence=DEFAULT_FENCE): # Check for various shell code blocks shell_starts = [ - "```bash", "```sh", "```shell", # Unix-like shells - "```cmd", "```batch", # Windows Command Prompt - "```powershell", "```ps1", # Windows PowerShell + "```bash", + "```sh", + "```shell", # Unix-like shells + "```cmd", + "```batch", # Windows Command Prompt + "```powershell", + "```ps1", # Windows PowerShell "```zsh", # Z shell "```fish", # Friendly Interactive Shell "```ksh", # Korn Shell - "```csh", "```tcsh", # C Shell and TENEX C Shell + "```csh", + "```tcsh", # C Shell and TENEX C Shell ] if any(cur.strip().startswith(start) for start in shell_starts): shell_content = []