commit 006b3a48fdf921a1b074387d901c0abb8af42430 parent 229a921462e263e0bcfc304f8410da039e713c69 Author: Andrew Laack <andrew@laack.co> Date: Sun, 11 Oct 2026 11:33:49 -0500 Test Diffstat:
| A | out.txt | | | 2 | ++ |
| M | scripts/replace_tabs.py | | | 4 | ++-- |
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/out.txt b/out.txt @@ -0,0 +1 @@ + test+ \ No newline at end of file diff --git a/scripts/replace_tabs.py b/scripts/replace_tabs.py @@ -6,5 +6,5 @@ with open(file,'r') as f: with open(file,'w') as f: for line in lines: - line.replace('\t', " ") - f.write(line + "\n") + res = line.expandtabs() + f.write(res)