Diff for /loncom/xml/lonxml.pm between versions 1.197 and 1.199

version 1.197, 2002/10/03 13:34:10 version 1.199, 2002/10/08 17:09:09
Line 99  use Apache::edit(); Line 99  use Apache::edit();
 use Apache::lonnet();  use Apache::lonnet();
 use Apache::File();  use Apache::File();
 use Apache::loncommon();  use Apache::loncommon();
   use Apache::lonfeedback();
   
 #==================================================   Main subroutine: xmlparse    #==================================================   Main subroutine: xmlparse  
 #debugging control, to turn on debugging modify the correct handler  #debugging control, to turn on debugging modify the correct handler
Line 232  sub xmlend { Line 233  sub xmlend {
           }            }
           if ($discussiononly) {            if ($discussiononly) {
       $discussion.=(<<ENDDISCUSS);        $discussion.=(<<ENDDISCUSS);
 <form action="/adm/feedback" method="post">  <form action="/adm/feedback" method="post" name="mailform">
 <input type="submit" name="discuss" value="Post Discussion" />  <input type="submit" name="discuss" value="Post Discussion" />
 <input type="submit" name="anondiscuss" value="Post Anonymous Discussion" />  <input type="submit" name="anondiscuss" value="Post Anonymous Discussion" />
 <input type="hidden" name="symb" value="$symb" />  <input type="hidden" name="symb" value="$symb" />
Line 243  course faculty</font><br /> Line 244  course faculty</font><br />
 <textarea name=comment cols=60 rows=10 wrap=hard></textarea>  <textarea name=comment cols=60 rows=10 wrap=hard></textarea>
 </form>  </form>
 ENDDISCUSS  ENDDISCUSS
                $discussion.=&Apache::lonfeedback::generate_preview_button();
           }            }
        }         }
     }      }
Line 580  sub latex_special_symbols { Line 582  sub latex_special_symbols {
     if ($current_token=~/ \#\w/) {      if ($current_token=~/ \#\w/) {
  $current_token=~s/ \#(\w)/ \\#$1/;   $current_token=~s/ \#(\w)/ \\#$1/;
     } else {      } else {
  $current_token=~s/([^&]\#)/\\$1/g;   $current_token=~s/([^&])(\#)/$1\\$2/g;
     }      }
     $current_token=~s/(\$|_|{|})/\\$1/g;      $current_token=~s/(\$|_|{|})/\\$1/g;
     $current_token=~s/\\char92 /\\texttt{\\char92}/g;      $current_token=~s/\\char92 /\\texttt{\\char92}/g;

Removed from v.1.197  
changed lines
  Added in v.1.199


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