mirror of
https://github.com/elliotnunn/macresources.git
synced 2024-09-25 10:55:10 +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]
|
chars = [the_quote]
|
||||||
for ch in src:
|
for ch in src:
|
||||||
if 8 <= ch <= 13:
|
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):
|
elif ch < 32 or (ascii_clean and ch >= 128):
|
||||||
nu = b'\\0x%02X' % ch
|
nu = b'\\0x%02X' % ch
|
||||||
elif ch == ord('\\'):
|
elif ch == ord('\\'):
|
||||||
|
Loading…
Reference in New Issue
Block a user