[stringtemplate-interest] Newline removal

Terence Parr parrt at cs.usfca.edu
Tue Sep 23 11:56:34 PDT 2008


Howdy.  Yes,I believe I agree. there are number of cases, such as the  
IF tag, that end up leaving a blank line if they are not evaluated.

http://www.antlr.org:8888/browse/ST-44

Added. Sometime around January or February I think I will formerly  
redesign ST and start from a blank screen. I am having lots of  
conversations with Tom Burns who is a codesigner of the "language".   
Seems that you would like to be in on that discussion. ;) Are you in  
the SF Bay Area, btw?

Ter
On Sep 23, 2008, at 10:41 AM, Roman Odaisky wrote:

> Hi,
>
>> TheWhitespace immediately following | is removed (Should be buried
>> somewhere in the manual) ;)
>
> I understand that. My concern is inconsistent behaviour. For  
> example, I have
> changed { to {_| several times to eat those newlines, and that hardly
> improves readability.
>
> Perhaps if the $...:{ occupies the entire line, the newline should  
> be removed
> as well?
>
> <div>$some_flag:{ $! no need to remove newline !$
>    <div>
>
> <div>
> $some_flag:{ $! should produce no empty line !$
>    <div>
>
> -- 
> WBR
> Roman.
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org:8080/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list