[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: <text> broken in WML 2?
- From: Denis Barbier <nospam@thanx>
- Date: Mon, 28 Aug 2000 21:27:39 +0200
On Mon, Aug 28, 2000 at 04:59:17PM +0200, Stephane Bortzmeyer wrote:
> In WML 1, the following code worked fine and used txt2html to guess good HTML:
>
>
> #use wml::fmt::text
>
> <text>
> foo@bar
> </text>
>
>
> In WML 2, it now crashes:
>
>
> wallis:/tmp> wml toto.wml
> ePerl:Error: Perl parsing error (interpreter rc=255)
>
> ---- Contents of STDERR channel: ---------
> In string, @bar now must be written as \@bar at /tmp/wml.24256.tmp1.wml line
> 122, near "foo@bar"
> Execution of /tmp/wml.24256.tmp1.wml aborted due to compilation errors.
> ------------------------------------------
> ** WML:Break: Error in Pass 3 (rc=74).
>
>
> I certainly do not want to Perl-escape all my files. I use <text> precisely to
> convert anything, including email addresses.
Indeed, here is a patch. The same problem occurs with some other modules
too.
Thanks for the point.
--- wml_include/fmt/text.src 2000/07/21 23:25:10 1.12
+++ wml_include/fmt/text.src 2000/08/28 19:20:41
@@ -43,7 +43,7 @@
my $notypo = (qq|<get-var notypo />| eq '' ? 1 : 0);
my $buf;
- <perl:assign $buf>%body</perl:assign>
+ <perl:assign:sq $buf>%body</perl:assign:sq>
# there is no reason to nest <text> tags, so the <perl:print>
--
Denis Barbier
WML Maintainer
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com