Solved minor bug that occurred when generating code specifying default values containg carriage returns.
This commit is contained in:
parent
f7143a2afd
commit
f9966a9654
|
@ -1,3 +1,4 @@
|
||||||
|
#!/usr/bin/python2.4.4
|
||||||
# Imports ----------------------------------------------------------------------
|
# Imports ----------------------------------------------------------------------
|
||||||
import os, os.path, shutil, re, zipfile, sys, ftplib
|
import os, os.path, shutil, re, zipfile, sys, ftplib
|
||||||
from appy.shared import appyPath
|
from appy.shared import appyPath
|
||||||
|
|
|
@ -14,6 +14,7 @@ def stringify(value):
|
||||||
res = value[7:]
|
res = value[7:]
|
||||||
else:
|
else:
|
||||||
res = "'%s'" % value.replace("'", "\\'")
|
res = "'%s'" % value.replace("'", "\\'")
|
||||||
|
res = res.replace('\n', '\\n')
|
||||||
return res
|
return res
|
||||||
|
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue