[LON-CAPA-cvs] cvs: loncom /interface lonhelp.pm

raeburn raeburn at source.lon-capa.org
Thu Apr 6 13:36:12 EDT 2023


raeburn		Thu Apr  6 17:36:12 2023 EDT

  Modified files:              
    /loncom/interface	lonhelp.pm 
  Log:
  - Bug 6698
    When displaying help files online (which use tth) prevent inclusion of 
    script tag for MathJax.js immediately after body tag (from call to
    lontexconvert::init_math_support(). 
  
  
Index: loncom/interface/lonhelp.pm
diff -u loncom/interface/lonhelp.pm:1.48 loncom/interface/lonhelp.pm:1.49
--- loncom/interface/lonhelp.pm:1.48	Sun May 29 20:48:57 2022
+++ loncom/interface/lonhelp.pm	Thu Apr  6 17:36:12 2023
@@ -1,6 +1,6 @@
 # The LearningOnline Network with CAPA
 #
-# $Id: lonhelp.pm,v 1.48 2022/05/29 20:48:57 raeburn Exp $
+# $Id: lonhelp.pm,v 1.49 2023/04/06 17:36:12 raeburn Exp $
 #
 # .tex help system web server handler
 #
@@ -254,8 +254,10 @@
                       };
      }
      my $firstfile;
+     $env{'form.texengine'} = 'tth';
      my $start_page=
 	 &Apache::loncommon::start_page('LON-CAPA Help',undef,$starthash);
+     delete($env{'form.texengine'});
      my $text='';
      my $uri = $r->uri;
      if ($env{'form.searchterm'}=~/\w/) {




More information about the LON-CAPA-cvs mailing list