X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=development%2Fautotests%2FlyxStatus.pm;h=cfdeceb0f6a49bb46d7b03d0e7b7ce7d96865c9e;hb=b835c454ece6f1f8984664bf07974f4341bfd30c;hp=ef18c897bb2854ada818ed5eedcd5075d71f1f5b;hpb=811114664fda850a7878ecdfb9791843dd1bee90;p=lyx.git diff --git a/development/autotests/lyxStatus.pm b/development/autotests/lyxStatus.pm index ef18c897bb..cfdeceb0f6 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); }