On Thu, Aug 30, 2001 at 12:48:28PM +0200, Yves Bastide wrote:
> On Wed, Aug 29, 2001 at 06:42:11PM +0100, Jose Abilio Oliveira Matos wrote:
> [snip]
> > 
> >  305      if( $Latex_Preamble =~ /\\geometry\{(.*)\}/) {
> >  306          my $geom_options = $1;
> >  307          my $op;
> >  308          foreach $op (keys %Geometry_Options) {
> >  309              $geom_options =~ s/$op// && do {
> >  310                  $LyX_Preamble .= $Geometry_Options{$op}();
> 
> for Perl < 5.6, you need
> $LyX_Preamble .= $Geometry_Options{$op}->();

  Hi have searched in the Camel book, and I have seen identical code but I
wasn't sure. Thanks.

> (should I send a patch for this one-liner?)

  Unless you have other features/bug fixes it easier to add it my self than
to have all the trouble with patching and unpatching. ;-)

> >  311                  print "Geometry option $op\n" if $debug_on;
> >  312              }
> >  313          }
> > ...

  Thanks. :-)
  
> -- 
>       Yves

-- 
José

Reply via email to