From 57bd2933269f873f9d9c040406a61b64c957246e Mon Sep 17 00:00:00 2001 From: Elliot Nunn Date: Sun, 9 Dec 2018 13:32:53 +0800 Subject: [PATCH] Roundtrip fix: tabs etc in resource names --- macresources/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macresources/main.py b/macresources/main.py index f6a17b7..ebc9654 100644 --- a/macresources/main.py +++ b/macresources/main.py @@ -27,7 +27,7 @@ def _rez_escape(src, singlequote=False, ascii_clean=False): chars = [the_quote] for ch in src: if 8 <= ch <= 13: - nu = b'\\' + b'btrvfn'[ch:ch+1] + nu = b'\\' + b'btrvfn'[ch-8:][:1] elif ch < 32 or (ascii_clean and ch >= 128): nu = b'\\0x%02X' % ch elif ch == ord('\\'):