Solved minor bug that occurred when generating code specifying default values containg carriage returns.
This commit is contained in:
parent
f7143a2afd
commit
f9966a9654
2 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ def stringify(value):
|
|||
res = value[7:]
|
||||
else:
|
||||
res = "'%s'" % value.replace("'", "\\'")
|
||||
res = res.replace('\n', '\\n')
|
||||
return res
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue