DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17803>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17803

allow for multi-line string literals / macro parameters arguments similar to m4

           Summary: allow for multi-line string literals / macro parameters
                    arguments similar to m4
           Product: Velocity
           Version: 1.3-rc1
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Source
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


From: Ralf Hauser [EMAIL PROTECTED]
To: Geir Magnusson Jr.
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: Allowing NEWLINE in #set for readability

Geir, 

Thanks for the quick answer. The below with the "+"es looks doable. I am about
to convert to velocity/vpp coming from m4
(http://www.gnu.org/manual/m4-1.4/m4.html).
m4's commenting structure with a different begin ` and end ' syntax is very
convenient for nesting and handles newlines very conveniently. Conversely to
Bill's quoting proposal with single quotes etc., (see also
http://jakarta.apache.org/velocity/user-guide.html#Velocimacro%20Miscellany), I
suggest that text inside such quotes still gets rendered.

Bill had further ideas (e.g. a "connect" directive) on the vpp mailing list -->
see http://sourceforge.net/mailarchive/message.php?msg_id=4015929.

Thx r.
> -----Original Message-----
> From: Geir Magnusson Jr. [mailto:[EMAIL PROTECTED]
> Sent: Samstag, 1. M�rz 2003 00:24
> To: [EMAIL PROTECTED]
> Subject: Re: Allowing NEWLINE in #set for readability
> 
> > Geir,
> >
> > over a year ago
> >
(http://archives.apache.org/eyebrowse/[EMAIL PROTECTED]&msgNo=5879),
you hinted at this being potentially  
> > possible; I am
> > now using velocity-dep-1.3.1-rc2.jar and get the below. Does this mean
> > velocity still doesn't support
> > multi-line string literals?
> 
> no, not yet.  We were trying to come to some conclusion for string cat,  
> so you could do
> 
> #set($foo = "foo " +
>     "bar"
>   + "woogie")
> 
> which would make you happy?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to