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

Re: [BUG REPORT] WML 2.0.8, Linux RH 7.2



On Tue, Mar 05, 2002 at 09:48:19PM +0100, freddyz77@tin.it wrote:
> BUG REPORT
> 
> Package: WML 2.0.8
> Operating System: Linux RH 7.2
> 
> Problem Description:
[...]
> | Using a level optimization less than 3 give a correct result but from -O3 the output is
> | 
> | --------------------
> | <p>short desc.</p>%!slice       -oUNDEFuTEST-LANG_EN:test2.html
> | --------------------
> | 
> | I replaced (in wml_p8_htmlstrip)
> | 
> | --------------------
> |     if ($opt_O >= 3) {
> |         #   strip leading whitespaces
> |         $buf =~ s|^\s+||mg;
> |     }
> | --------------------
> | with
> | --------------------
> |     if ($opt_O >= 3) {
> |         #   strip leading whitespaces
> |         $buf =~ s,$,!,m; # do not collapse first empty line
> |         $buf =~ s|^\s+||mg;
> |         $buf =~ s,!$,,m;
> |     }
> | --------------------
> | and work correctly

Hi,

my understanding of Level 3 description is that it should be written
     if ($opt_O >= 3) {
         #   strip leading whitespaces
         $buf =~ s|\n\s+|\n|sg;
     }

Does it work for you?

-- 
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