Re: [Htmltmpl] Trailing empty line while printing template
Brought to you by:
jakubvrana,
tripiecz
|
From: Johan S. <jo...@sv...> - 2004-01-15 11:43:00
|
* Jan 15 04:55 anders pearson <an...@co...>:
[...]
> python's built in 'print' always adds a newline to the end. is that
> what you're talking about?
Yeah, I first didn't realize that the template proccess already added a
'\n' at the end.
sys.stdout.write(tp.process(tm))
Solves it ofcourse.
--
Johan Svedberg, jo...@sv..., http://johan.svedberg.pp.se/
|