Solved minor bug that occurred when generating code specifying default values containg carriage returns.

This commit is contained in:
Gaetan Delannay 2009-09-29 14:32:34 +02:00
parent f7143a2afd
commit f9966a9654
2 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@ def stringify(value):
res = value[7:]
else:
res = "'%s'" % value.replace("'", "\\'")
res = res.replace('\n', '\\n')
return res
# ------------------------------------------------------------------------------