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

raeburn raeburn@source.lon-capa.org
Thu, 04 Feb 2010 18:42:41 -0000


raeburn		Thu Feb  4 18:42:41 2010 EDT

  Modified files:              
    /loncom/homework	randomlabel.pm 
  Log:
  - Bug 6208.
   - Replace new paragraph after image with new line after image to prevent 
     LaTeX error when printing randomly labelled image inside a table.
  
  
Index: loncom/homework/randomlabel.pm
diff -u loncom/homework/randomlabel.pm:1.94 loncom/homework/randomlabel.pm:1.95
--- loncom/homework/randomlabel.pm:1.94	Fri Dec 19 14:28:14 2008
+++ loncom/homework/randomlabel.pm	Thu Feb  4 18:42:41 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # random labelling tool
 #
-# $Id: randomlabel.pm,v 1.94 2008/12/19 14:28:14 raeburn Exp $
+# $Id: randomlabel.pm,v 1.95 2010/02/04 18:42:41 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -223,7 +223,7 @@
 	&Apache::lonnet::appenv(\%args);
     } elsif ($target eq 'tex') {
 	$result='\end{picture}\\\\';
-	$result.= ' \vskip -'.$height_param.' mm }  \\\\ ';
+	$result.= ' \vskip -'.$height_param.' mm } \\newline ';
     } elsif ($target eq 'edit') {
 	$result.=&Apache::edit::end_table;
     }