Added \" to escapes so embedded escaped double quotes are handled
correctly. Patch suggested by Mads Kiilerich <mk@solit.dk>.
This commit is contained in:
parent
b70699bcc5
commit
8f35681843
|
@ -137,6 +137,7 @@ escapes[ord('\\')] = '\\\\'
|
|||
escapes[ord('\t')] = '\\t'
|
||||
escapes[ord('\r')] = '\\r'
|
||||
escapes[ord('\n')] = '\\n'
|
||||
escapes[ord('\"')] = '\\"'
|
||||
|
||||
def escape(s):
|
||||
s = list(s)
|
||||
|
|
Loading…
Reference in New Issue