[ZPT] mangled source

Guido van Rossum guido@digicool.com
Sat, 23 Jun 2001 09:12:59 -0400


> Is there some way to keep zpt from adding newlines where there
> were none before?
> 
> something like this:
>         <td tal:content="here/blah/blah">text</td>
> 
> ends up like:
>         <td 
>     tal:content="here/blah/blah">text</td>
> 
> after it's saved.

Ah, the wrapping feature.  We do this because the HTML/XML parsers
don't tell us where and what the whitespace in the source is.  To turn
it off, edit TAL/TALInterpreter.py and change "wrap=60" to "wrap=0" in
TALInterpreter.__init__()'s parameter list.  Then a tag will always be
on one line, no matter how long it is...

--Guido van Rossum (home page: http://www.python.org/~guido/)