mirror of
https://github.com/elliotnunn/macresources.git
synced 2024-06-07 21:29:27 +00:00
Roundtrip fix: tabs etc in resource names
This commit is contained in:
parent
b21a7a4595
commit
57bd293326
|
@ -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('\\'):
|
||||
|
|
Loading…
Reference in New Issue
Block a user