Re: Loss of newline when using directiveStartToken and commentStartToken

Jonathan Giddy <[email protected]> Tue, 04 Aug 2009 05:55:42 +0100
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
> I am finding that whitespace goes missing after "blank" comment lines. 
> Instead of being passed through as literals, the text "# \n" becomes "", 
> and "## \n" becomes "#". Any spaces before the newline are also 
> swallowed up.
>   
I have discovered the existence of the compiler setting EOLSlurpToken. 
Adding
EOLSlurpToken = None
to the compiler settings fixed the problem. I just didn't realise that 
the docs on the website were for pre-2.0.

Thanks,
Jon.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july