[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

foxr lon-capa-cvs-allow@mail.lon-capa.org
Sun, 12 Oct 2008 13:35:36 -0000


foxr		Sun Oct 12 09:35:36 2008 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  BZ5554 - Ensure that <tex>stuff</tex> does not introduce an extraneous space 
  between the <tex></tex> and the rest of the document e.g.
  <tex>``</tex>thing<tex>''</tex> used to produce
  " thing"  rather than "thing".
  
  
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.431 loncom/homework/structuretags.pm:1.432
--- loncom/homework/structuretags.pm:1.431	Fri Sep 19 13:14:31 2008
+++ loncom/homework/structuretags.pm	Sun Oct 12 09:35:34 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.431 2008/09/19 17:14:31 raeburn Exp $
+# $Id: structuretags.pm,v 1.432 2008/10/12 13:35:34 foxr Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -74,7 +74,7 @@
     if ($target ne 'edit' && $target ne 'modified') {
 	my $bodytext=&Apache::lonxml::get_all_text("/tex",$parser,$style);
 	if ($target eq 'tex') {
-	    return $bodytext.' ';
+	    return $bodytext.'{}';
 	}
     } elsif ($target eq "edit" ) {
 	my $bodytext =