[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm

raeburn raeburn at source.lon-capa.org
Thu Jan 25 18:37:14 EST 2024


raeburn		Thu Jan 25 23:37:14 2024 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Move any warnings about missing starting/ending html or body tags so
    they occur after (or below) buttons for editing when viewing HTML file
    in Authoring Space.  
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.567 loncom/xml/lonxml.pm:1.568
--- loncom/xml/lonxml.pm:1.567	Tue Nov 28 04:48:14 2023
+++ loncom/xml/lonxml.pm	Thu Jan 25 23:37:14 2024
@@ -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.568 2024/01/25 23:37:14 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1623,7 +1623,7 @@
       if ($filetype eq 'html') {
           $htmlerror=&verify_html($filecontents);
           if ($htmlerror) {
-              $htmlerror='<span class="LC_error">'.$htmlerror.'</span>';
+              $htmlerror=(' 'x3).' <span class="LC_error">'.$htmlerror.'</span>';
           }
           if (&Apache::lonhtmlcommon::htmlareabrowser()) {
               unless ($textareaclass) {
@@ -1668,7 +1668,7 @@
     </div>
     <div>
       <input type="button" name="discardview" accesskey="d" value="$lt{'dv'}" $onclick{'discard'} />
-      $undo $htmlerror $deps_button $daxebutton $dragmath_button
+      $undo $deps_button $daxebutton $dragmath_button $htmlerror
     </div>
   </div>
   <textarea $textarea_events style="width:100%" cols="80" rows="44" name="filecont" id="filecont" $textareaclass>$filecontents</textarea><br />$spelllink




More information about the LON-CAPA-cvs mailing list