--- loncom/xml/lonxml.pm 2023/11/28 04:48:14 1.567 +++ loncom/xml/lonxml.pm 2024/04/17 13:37:37 1.571 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # XML Parser Module # -# $Id: lonxml.pm,v 1.567 2023/11/28 04:48:14 raeburn Exp $ +# $Id: lonxml.pm,v 1.571 2024/04/17 13:37:37 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1623,7 +1623,7 @@ FULLPAGE if ($filetype eq 'html') { $htmlerror=&verify_html($filecontents); if ($htmlerror) { - $htmlerror=''.$htmlerror.''; + $htmlerror=(' 'x3).' '.$htmlerror.''; } if (&Apache::lonhtmlcommon::htmlareabrowser()) { unless ($textareaclass) { @@ -1668,7 +1668,7 @@ $initialize
- $undo $htmlerror $deps_button $daxebutton $dragmath_button + $undo $deps_button $daxebutton $dragmath_button $htmlerror

$spelllink @@ -1702,15 +1702,67 @@ ENDSCRIPT } sub seteditor_javascript { + my ($is_course_doc,$is_supp,$supp_path,$supp_title) = @_; + my $symb; + if ($is_course_doc) { + if (!$is_supp) { + ($symb) = &Apache::lonnet::whichuser(); + if ($symb) { + $symb = &escape($symb); + } + } + } return <<"ENDSCRIPT";