Исправлена функция replace

master3.3
Mike Hiretsky 10 years ago
parent 83117f2b94
commit 06ada512d9

@ -3365,7 +3365,7 @@ class templateFunction(_error, _warning, _shareTemplate, _shareTermsFunction):
textArgv = term[1:-1]
for replTerm in replTerms:
textArgv = textArgv.replace(*replTerm)
textArgv = re.sub(r'\\x(\d\d)',
textArgv = re.sub(r'\\x([0-9a-fA-F]{2})',
lambda x:chr(int(x.group(1),16)),textArgv)
listArgv.append(textArgv)
elif term.startswith("'") and term.endswith("'"):

Loading…
Cancel
Save