[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /homework inputtags.pm
raeburn
raeburn at source.lon-capa.org
Fri Aug 5 19:17:11 EDT 2016
raeburn Fri Aug 5 23:17:11 2016 EDT
Modified files: (Branch: version_2_11_X)
/loncom/homework inputtags.pm
Log:
- For 2.11
- Backport 1.342
Index: loncom/homework/inputtags.pm
diff -u loncom/homework/inputtags.pm:1.333.2.3 loncom/homework/inputtags.pm:1.333.2.4
--- loncom/homework/inputtags.pm:1.333.2.3 Fri Oct 30 11:33:07 2015
+++ loncom/homework/inputtags.pm Fri Aug 5 23:17:10 2016
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# input definitons
#
-# $Id: inputtags.pm,v 1.333.2.3 2015/10/30 11:33:07 raeburn Exp $
+# $Id: inputtags.pm,v 1.333.2.4 2016/08/05 23:17:10 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1048,7 +1048,7 @@
#
my $computer = ($handgrade || $nocorrect)? ''
- : " ".&mt("Computer's answer now shown above.");
+ : &mt("Computer's answer now shown above.");
&Apache::lonxml::debug("handgrade has :$handgrade:");
if ($previous) { $previousmsg=&mt('You have entered that answer before'); }
@@ -1072,7 +1072,9 @@
$message = '\textbf{'.$message.'}';
} else {
$message = "<b>".$message."</b>";
- $message.= $computer;
+ if ($computer) {
+ $message = "$computer $message";
+ }
}
$added_computer_text=1;
if ($awarded > 0) {
@@ -1116,7 +1118,9 @@
$message = '\textbf{'.&mt('You are correct.').'}';
} else {
$message = "<b>".&mt('You are correct.')."</b>";
- $message.= $computer;
+ if ($computer) {
+ $message = "$computer $message";
+ }
}
$added_computer_text=1;
if ($awarded > 0
@@ -1328,7 +1332,9 @@
}
if ($Apache::inputtags::status[-1] eq 'SHOW_ANSWER' &&
!$added_computer_text && $target ne 'tex') {
- $message.= $computer;
+ if ($computer) {
+ $message = "$computer $message";
+ }
$added_computer_text=1;
}
if ($Apache::lonhomework::type eq 'practice') {
More information about the LON-CAPA-cvs
mailing list