Commit 360f5b8b authored by Shane Hathaway's avatar Shane Hathaway

Collector #2334

parent 26c19c8a
...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted ...@@ -89,7 +89,7 @@ This product provides support for Script objects containing restricted
Python code. Python code.
""" """
__version__='$Revision: 1.33 $'[11:-2] __version__='$Revision: 1.34 $'[11:-2]
import sys, os, traceback, re, marshal import sys, os, traceback, re, marshal
from Globals import DTMLFile, MessageDialog, package_home from Globals import DTMLFile, MessageDialog, package_home
...@@ -461,6 +461,8 @@ class PythonScript(Script, Historical, Cacheable): ...@@ -461,6 +461,8 @@ class PythonScript(Script, Historical, Cacheable):
bup = 1 bup = 1
body = body.rstrip() body = body.rstrip()
if body:
body = body + '\n'
if body != self._body: if body != self._body:
self._body = body self._body = body
if bup: if bup:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment