From 695e8c384c71a4ceeaae71469aaf2d2fe6a6fbaf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 22 Aug 2024 09:10:31 -0700 Subject: [PATCH] fix: Update error message formatting in process_markdown function --- testsr.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/testsr.py b/testsr.py index 90003d521..ad8edbff8 100755 --- a/testsr.py +++ b/testsr.py @@ -27,7 +27,7 @@ def process_markdown(filename): with open(filename, "r") as file: content = file.read() except FileNotFoundError: - print(f"*** File '{filename}' not found.", "*" * 20) + print(f"@@@ File '{filename}' not found.", "@" * 20) return # Split the content into sections based on '####' headers @@ -52,25 +52,25 @@ def process_markdown(filename): try: blocks = list(find_original_update_blocks(content, fence)) except ValueError as e: - print("***", header, "*" * 20) + print("\n\n@@@", header, "@" * 20) print(str(e)) continue if blocks: - print("***", header, "*" * 20) + print("\n\n@@@", header, "@" * 20) for block in blocks: if block[0] is None: # This is a shell command block - print("*** SHELL", "*" * 20) + print("@@@ SHELL", "@" * 20) print(block[1], end="") - print("*** ENDSHELL", "*" * 20) + print("@@@ ENDSHELL", "@" * 20) else: # This is a SEARCH/REPLACE block - print("*** SEARCH:", block[0], "*" * 20) + print("@@@ SEARCH:", block[0], "@" * 20) print(block[1], end="") - print("*" * 20) + print("@" * 20) print(block[2], end="") - print("*** REPLACE", "*" * 20) + print("@@@ REPLACE", "@" * 20) if __name__ == "__main__":