[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
raeburn
raeburn at source.lon-capa.org
Mon Sep 30 00:52:53 EDT 2024
raeburn Mon Sep 30 04:52:53 2024 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- Bug 5907
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.585 loncom/homework/structuretags.pm:1.586
--- loncom/homework/structuretags.pm:1.585 Tue Feb 27 22:09:40 2024
+++ loncom/homework/structuretags.pm Mon Sep 30 04:52:53 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.585 2024/02/27 22:09:40 raeburn Exp $
+# $Id: structuretags.pm,v 1.586 2024/09/30 04:52:53 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -229,7 +229,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