From f9966a96541aa4e9443166c0d368ab73772059bb Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Tue, 29 Sep 2009 14:32:34 +0200 Subject: [PATCH] Solved minor bug that occurred when generating code specifying default values containg carriage returns. --- bin/publish.py | 1 + gen/plone25/utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/publish.py b/bin/publish.py index da7425a..5cf7b16 100755 --- a/bin/publish.py +++ b/bin/publish.py @@ -1,3 +1,4 @@ +#!/usr/bin/python2.4.4 # Imports ---------------------------------------------------------------------- import os, os.path, shutil, re, zipfile, sys, ftplib from appy.shared import appyPath diff --git a/gen/plone25/utils.py b/gen/plone25/utils.py index 7d3a718..bf7fe03 100755 --- a/gen/plone25/utils.py +++ b/gen/plone25/utils.py @@ -14,6 +14,7 @@ def stringify(value): res = value[7:] else: res = "'%s'" % value.replace("'", "\\'") + res = res.replace('\n', '\\n') return res # ------------------------------------------------------------------------------