I have no idea why Python Scripts is acting this way. Can you generate your xml without using triple quotes? print 'foo\nbar' or print '%s\n%s' % ('foo', 'bar') -- Patrick Lewis "Christopher N. Deckard" wrote:
Clarification, this happens when using triple quotes
print ''' foo bar '''
Actually prints: foo bar
-Chris
"Christopher N. Deckard" wrote:
I'm running into problems because Zope is printing a space (" ") at the beginning of each line when 'print'ing from a Python Script. I'm trying to print out XML to a Java Applet and the Applet isn't smart enough to take this into account. Bad parser, but Zope shouldn't be doing this anyway. Any fix that I can do? -Chris -- -------------------------------------------------------------------- Christopher N. Deckard | Lead Web Systems Developer cnd@ecn.purdue.edu | Engineering Computer Network <http://www.ecn.purdue.edu/> | Purdue University ---- zlib.decompress('x\234K\316Kq((-J)M\325KM)\005\000)"\005w') ---