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

raeburn raeburn at source.lon-capa.org
Sat Dec 28 23:03:10 EST 2024


raeburn		Sun Dec 29 04:03:10 2024 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/homework	structuretags.pm 
  Log:
  - For 2.11
    Backport 1.586
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.512.2.28 loncom/homework/structuretags.pm:1.512.2.29
--- loncom/homework/structuretags.pm:1.512.2.28	Sun Jul  7 21:45:07 2024
+++ loncom/homework/structuretags.pm	Sun Dec 29 04:03:10 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.512.2.28 2024/07/07 21:45:07 raeburn Exp $
+# $Id: structuretags.pm,v 1.512.2.29 2024/12/29 04:03:10 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -206,7 +206,11 @@
 	    if (&Apache::londefdef::is_inside_of($tagstack, "table")) {
 		$bodytext =~ s/\\\\//g;
 	    }
-	    return $bodytext.'{}';
+	    if ($bodytext =~ /\$\S*[^\$\s]$/) {
+	        return $bodytext.' ';
+	    } else {
+	        return $bodytext.'{}';
+	    }
 	}
     } elsif ($target eq "edit" ) {
 	my $bodytext = 




More information about the LON-CAPA-cvs mailing list