Diff for /rat/lonpage.pm between versions 1.143 and 1.145

version 1.143, 2023/09/10 18:12:55 version 1.145, 2025/03/19 14:44:03
Line 424  ENDEXT Line 424  ENDEXT
               }                }
                               my $output=Apache::lonnet::ssi($src,%posthash);                                my $output=Apache::lonnet::ssi($src,%posthash);
       $output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;        $output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;
                                 $output=~s{\Q<div class="LC_landmark" role="main">\E}{<div class="LC_landmark">}gs;
                               if (($target eq 'tex') || ($target eq 'tex_answer')) {                                if (($target eq 'tex') || ($target eq 'tex_answer')) {
   $output =~ s/^([^&]+)\\begin\{document}//;    $output =~ s/^([^&]+)\\begin\{document}//;
   $output =~ s/\\end\{document}//;    $output =~ s/\\end\{document}//;
Line 514  ENDEXT Line 515  ENDEXT
                                       $hastimer = 1;                                        $hastimer = 1;
                                   }                                    }
                                   unless ($hasnumresp) {                                    unless ($hasnumresp) {
                                       if ($output=~/\<input[^\>]+class\s*=\s*[\'\"]*([^\'\"\>]+|)LC_numresponse_text/) {                                        if ($output=~/\<input[^\>]+class\s*=\s*['"]*[^'">]*LC_numresponse_text\W/) {
                                           $hasnumresp = 1;                                            $hasnumresp = 1;
                                       }                                        }
                                   }                                    }

Removed from v.1.143  
changed lines
  Added in v.1.145


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>