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

foxr foxr@source.lon-capa.org
Sat, 02 May 2009 22:16:58 -0000


foxr		Sat May  2 22:16:58 2009 EDT

  Modified files:              
    /loncom/xml	londefdef.pm 
  Log:
  Prevent double \begin{document} from the cases when that happens.
  
  
Index: loncom/xml/londefdef.pm
diff -u loncom/xml/londefdef.pm:1.402 loncom/xml/londefdef.pm:1.403
--- loncom/xml/londefdef.pm:1.402	Mon Apr 20 10:40:04 2009
+++ loncom/xml/londefdef.pm	Sat May  2 22:16:58 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Tags Default Definition Module 
 #
-# $Id: londefdef.pm,v 1.402 2009/04/20 10:40:04 foxr Exp $
+# $Id: londefdef.pm,v 1.403 2009/05/02 22:16:58 foxr Exp $
 # 
 #
 # Copyright Michigan State University Board of Trustees
@@ -552,7 +552,7 @@
 	}
 	$currentstring.=&Apache::lonxml::message_location();
     } elsif ($target eq 'tex') {
-	$currentstring = '\begin{document}';  
+	$currentstring = '';   #  '\begin{document}' is in header.
     } 
     return $currentstring;
 }