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

Re: [BUG REPORT] WML 2.0.6, SunOS Release 5.8 - Solaris 8



Denis Barbier wrote:
> i applied the following patch:
> +++ wml_backend/p7_htmlfix/htmlfix.src  2001/05/25 20:03:47     1.16
> @@ -253,7 +253,7 @@
>  sub Fixup_center {
>      &verbose("replacing <center>..</center> by <div align=center>..</div>");
>  
> -    $buffer =~ s|<[cC][eE][nN][tT][eE][rR]>|<div align="center">|g;
> +    $buffer =~ s|<[cC][eE][nN][tT][eE][rR](\s[^>]*)?>|<div align="center"$1>|g;
>      $buffer =~ s|</[cC][eE][nN][tT][eE][rR]>|</div>|g;
>  }

Just being curious: Why using 

   $buffer =~ s|<[cC][eE][nN][tT][eE][rR]>|<div align="center">|g;

instead of

   $buffer =~ s|<center>|<div align="center">|gi;
                                               ^
?

Any performance reasons?

		Regards, Axel
-- 
Axel Beckert - abe@cs.uni-sb.de - http://abe.home.pages.de/
Student of Computer Science, University of Saarland (Germany)
Artificial Intelligence Laboratory (AI Lab), Prof. Dr. W. Wahlster;
WWW-/FTP-Administrator IBFI Schloß Dagstuhl; Students Representative CS

PGP signature