[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

RE: ePerl and '#' characters



Hi Pawel,

If you mean that ePerl deletes those lines, then we had that very same
problem.

You could use the tags

<protect pass=1,8>Text</protect>

around the lines preceded by hashes that are not supposed to be deleted by
ePerl. That is, unless you use passes 1 and 8 for your wml generating
purposes.

Cheers,

Jennifer Dunker

> -----Original Message-----
> From: Pawel Tecza [mailto:pawel.tecza@poczta.fm]
> Sent: Tuesday, October 30, 2001 3:56 PM
> To: sw-wml@engelschall.com
> Subject: ePerl and '#' characters
> 
> 
> Hello!!!
> 
> It's probably question about ePerl and not WML, but I need your help,
> because I don't know perl hackers :-( I have defined 
> following container for
> the examples of console commands:
> 
> <define-container example>
> <table border="0" cellpadding="5" cellspacing="0">
> <tr><td><tt>
> <:
> my @body = '';
> $body = q/%body/;
> 
> $body =~ s/  /&nbsp;&nbsp;/g;
> $body =~ s/\n/<br>\n/g;
> 
> print $body;
> :>
> </tt></td></tr>
> </table>
> </define-container>
> 
> If a body of example container includes lines with '#' 
> characters in front
> of line (look at the example below), then ePerl cuts those lines :-(
> 
> <example>
> # Ble ble ble ...
> # Bla bla ...
> 
> XXX YYY              ZZZZ ...
> # Ble ble ble ...
> </example>
> 
> I want ePerl ignores '#' characters in body of example. What 
> am I doing
> wrong? Thanks a lot for any help.
> 
> My best regards
> Pawel Tecza
> 
> 
> 
> ------------------------------------------------------------
> Szyfrowane polaczenia telefoniczne pomiedzy komorkami???
> http://fakty.interia.pl/nauka/tech/news?inf=103486
> 
> ______________________________________________________________________
> Website META Language (WML)                www.engelschall.com/sw/wml/
> Official Support Mailing List                   sw-wml@engelschall.com
> Automated List Manager                       majordomo@engelschall.com
> 
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com