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

Re: htmlfix problem



Hello Tetsuya Furukawa, in a previous mail you wrote:

> Problem:
>     % echo '<I>foo=bar</I>' | wml
>     <I>foo="bar</I">
> 
> To-Fix:
> --- wml_p7_htmlfix/htmlfix.src.orig	Tue Jan 20 20:26:07 1998
> +++ wml_p7_htmlfix/htmlfix.src	Tue Jan 20 20:43:10 1998
> @@ -197,7 +197,7 @@
>  #
>  $bufferN = '';
>  while (($prolog, $tag, $epilog) = 
> -       ($buffer =~ m|^(.*?)(<[a-zA-Z_][a-zA-Z0-9-_]*.+?>)(.*)$|s)) {
> +       ($buffer =~ m|^(.*?)(<[a-zA-Z_][a-zA-Z0-9-_]*.*?>)(.*)$|s)) {
>      $tag =~ s|([A-Za-z_-]+=)([^\s\f\"\'>]+)([\s\n>])|$1"$2"$3|isg;
>      $tag =~ s|([A-Za-z_-]+=")([0-9A-Fa-f]{6}"[\s\n>])|$1#$2|sg;
>      $bufferN .= $prolog.$tag;

Ops! Yes, there _are_ tags with just one letter.... Thanks! The patch will be
included into WML 1.5.2 or 1.6.0 (I currently don't know if I release another
patchlevel with just the bugfixes are include them together with the latest
changes into a 1.6.0).

Greetings,
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.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