Ah, but I do need to print something. And the error message is contradictory if anything, The string is described as "a runaway multi-line '' string"
A blank multi-line string, do I read that right? If it's multi-line, it's not blank, because it has newline characters in it; perhaps a mention in the Common Traps section of the documentation? I have a feeling it would save a number of people a lot of headache. Carl Furst o/~ What a difference a byte makes... o/~ -----Original Message----- From: phark...@gmail.com [mailto:phark...@gmail.com] On Behalf Of Perrin Harkins Sent: Wednesday, June 30, 2010 12:59 PM To: Furst, Carl Cc: mason-users@lists.sourceforge.net Subject: Re: [Mason] Eliminate whitespace between if elsif blocks? On Wed, Jun 30, 2010 at 10:47 AM, Furst, Carl <carl.fu...@mlb.com> wrote: > This component crashes... Why? Because of whitespace between the end of the > if block and the elsif. I wouldn't say it's a bug, but it would be > convenient if we didn't have to decipher the following error message as "you > have something that mason considers code between your if and elsif": > > Error during compilation of ifthenelse.mhtml: > syntax error at ifthenelse.mhtml line 10, near "elsif" > (Might be a runaway multi-line '' string starting on line 9) > Global symbol "$dosomethingelse" requires explicit package name at > /cms/cfurst/head/newsroom/htdocs/ifthenelse.mhtml line 10. It does sound annoying, but that error message looks pretty informative to me. You'd probably be better off with a <%perl> or <%init> block here if there's really nothing to print. I tend to avoid the % because it's so easy to break with a space before it on the line. - Perrin
smime.p7s
Description: S/MIME cryptographic signature
********************************************************** MLB.com: Where Baseball is Always On
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users