On Mon, Nov 16, 2015 at 06:51:08PM +0100, Kornel Benko wrote: > commit b835c454ece6f1f8984664bf07974f4341bfd30c > Author: Kornel Benko <kor...@lyx.org> > Date: Mon Nov 16 18:47:34 2015 +0100 > > Cmake export tests: More tests to be reverted. > > Again, thanks to Günter Milde. > ATM, the latex comments in user preamble are removed before export test. > > diff --git a/development/autotests/lyxStatus.pm > b/development/autotests/lyxStatus.pm > index ef18c89..cfdeceb 100644 > --- a/development/autotests/lyxStatus.pm > +++ b/development/autotests/lyxStatus.pm > @@ -242,6 +242,12 @@ sub checkForPreamble($) > "search" => '^\\\\(photo|ecvpicture)(.*\{)(.*)\}', > "fileidx" => 3, > "result" => ["\\", "1", "2", "3", "}"]); > + # > + # Remove comments from preamble > + my $comments = newMatch("search" => '^([^%]*)([%]+)([^%]*)$', > + "filetype" => "replace_only", > + "result" => ["1", "2"]); > + #setMatching([$rElem, $comments]); > setMatching([$rElem]); > return(1);
This is just meant to be temporary right? Should we (I can volunteer) add a note explaining why we remove comments from preamble (this is only clear to me from following the thread on lyx-devel) and also put a FIXME to remove it once we fix the root causes? Scott
signature.asc
Description: PGP signature