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

@ -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

View file

@ -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
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------