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

sakharuk lon-capa-cvs@mail.lon-capa.org
Tue, 08 Jun 2004 15:20:05 -0000


sakharuk		Tue Jun  8 11:20:05 2004 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  URLs, included in syllabus, are supported for 'tex' target as well. 
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.33 loncom/interface/lonsyllabus.pm:1.34
--- loncom/interface/lonsyllabus.pm:1.33	Thu Jun  3 10:28:39 2004
+++ loncom/interface/lonsyllabus.pm	Tue Jun  8 11:20:05 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Syllabus
 #
-# $Id: lonsyllabus.pm,v 1.33 2004/06/03 14:28:39 www Exp $
+# $Id: lonsyllabus.pm,v 1.34 2004/06/08 15:20:05 sakharuk Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -262,7 +262,11 @@
 # embed as an image
                          $output='<img src="'.$filelink.'" />';
 		      }
-                      $message.='<p>'.$output.'</p>';
+		      if ($target ne 'tex') {
+			  $message.='<p>'.$output.'</p>';
+		      } else {
+			  $message.=' '.&Apache::lonxml::xmlparse($r,'tex','<p>'.$output.'</p>').' ';
+		      }		      
                   }
                   if ($allowed) {
                      $r->print('<h3>'.$syllabusfields{$_}.