From 31b32a023bc67fc83a01560ba1ea7829bee931ec Mon Sep 17 00:00:00 2001 From: Enterly <36875936+anthony5301@users.noreply.github.com> Date: Mon, 27 Nov 2023 01:02:00 +0800 Subject: [PATCH] Fix champ name and prevent comp_editor changing line terminators --- comp_editor.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/comp_editor.py b/comp_editor.py index a2eff571..7fbfd962 100644 --- a/comp_editor.py +++ b/comp_editor.py @@ -592,10 +592,7 @@ def save_changes(self): .replace(" ", " ") .replace("\n ", "") .replace("\n ]", "]") - .replace("\r ", "") - .replace("\r ]", "]") .replace("[ ", "[") - .replace("\r\n",'\n') + file_content[comp_line_end:] )