[Pas-dev] compiler bug
Status: Beta
Brought to you by:
mortis
From: Kyle R . B. <mo...@vo...> - 2003-05-09 02:03:54
|
The following PSP code: <% my $aplicaitonName = $self->config->get('com.yoyodine.app.name'); %> Regards, <%= $applicationName %> Support Team Yoyodine, Inc. Resulted in the following code in the generated Page object: #line X mail.psp $self->response->print( $applicationName ); #line X mail.psp $self->response->print( q{ Support TeamYoyodine, Inc. }); Which is patently wrong. The newline between 'Team' and 'Yoyodine' silently went away. In standard HTML where tags often delimit content it might often go unnoticed. I certinly haven't noticed this bug until now (in a plain text email, all the whitespace is importaint). The bug manifests itself when a line in a PSP file starts with an expression (<%= %>) tag with two lines of content following it. If you put so little as a single space in front of the expression tags, everything is ok. At some point in the near future we'll need to fix this... Kyle -- ------------------------------------------------------------------------------ Wisdom and Compassion are inseparable. -- Christmas Humphreys mo...@vo... http://www.voicenet.com/~mortis ------------------------------------------------------------------------------ |