[Zope] strange 'print' behavior in Python Scripts
Christopher N. Deckard
cnd@ecn.purdue.edu
Fri, 29 Jun 2001 09:57:34 -0500
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') ---
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )