diff --git a/ChangeLog b/ChangeLog index b899f317..6e8e928c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18107,3 +18107,6 @@ 2018-12-06 Fred Gleason * Removed support for the 'priv' argument in callbacks in PyPAD scripts. +2018-12-06 Fred Gleason + * Added support for '\b', '\f', '\n' '\r' and '\t' control escapes + in the 'PyPADUpdate::padFields()' method. diff --git a/apis/PyPAD/api/PyPAD.py b/apis/PyPAD/api/PyPAD.py index 187905aa..49d62924 100644 --- a/apis/PyPAD/api/PyPAD.py +++ b/apis/PyPAD/api/PyPAD.py @@ -128,6 +128,11 @@ class PyPADUpdate(object): string=self.__replace('%'+chr(i),string) for i in range(101,123): string=self.__replace('%'+chr(i),string) + string=string.replace('\\b','\b') + string=string.replace('\\f','\f') + string=string.replace('\\n','\n') + string=string.replace('\\r','\r') + string=string.replace('\\t','\t') return string def hasNowPad(self):