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

raeburn raeburn@source.lon-capa.org
Wed, 18 Feb 2009 06:43:55 -0000


raeburn		Wed Feb 18 06:43:55 2009 EDT

  Modified files:              
    /loncom/xml	lonxml.pm 
  Log:
  - Don't call &verify_html() for .sty files.
  
  
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.490 loncom/xml/lonxml.pm:1.491
--- loncom/xml/lonxml.pm:1.490	Sun Dec  7 23:41:02 2008
+++ loncom/xml/lonxml.pm	Wed Feb 18 06:43:55 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # XML Parser Module 
 #
-# $Id: lonxml.pm,v 1.490 2008/12/07 23:41:02 www Exp $
+# $Id: lonxml.pm,v 1.491 2009/02/18 06:43:55 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1606,9 +1606,12 @@
       my $spelllink .=&Apache::lonhtmlcommon::spelllink('xmledit','filecont');
       my $textarea_events = &Apache::edit::element_change_detection();
       my $form_events     = &Apache::edit::form_change_detection();
-      my $htmlerror=&verify_html($filecontents);
-      if ($htmlerror) {
-         $htmlerror='<span class="LC_error">'.$htmlerror.'</span>';
+      my $htmlerror;
+      if ($filetype eq 'html') {
+          $htmlerror=&verify_html($filecontents);
+          if ($htmlerror) {
+              $htmlerror='<span class="LC_error">'.$htmlerror.'</span>';
+          }
       }
       my $editfooter=(<<ENDFOOTER);
 $initialize