[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
raeburn
raeburn at source.lon-capa.org
Sun Jun 4 01:27:28 EDT 2023
raeburn Sun Jun 4 05:27:28 2023 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- Remove some trailing white space
No code changes
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.376 loncom/homework/lonhomework.pm:1.377
--- loncom/homework/lonhomework.pm:1.376 Fri Jun 2 01:20:27 2023
+++ loncom/homework/lonhomework.pm Sun Jun 4 05:27:28 2023
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.376 2023/06/02 01:20:27 raeburn Exp $
+# $Id: lonhomework.pm,v 1.377 2023/06/04 05:27:28 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -371,7 +371,7 @@
my $probstatus = &Apache::structuretags::get_problem_status($part);
my $earlyout;
unless (($probstatus eq 'no') ||
- ($probstatus eq 'no_feedback_ever')) {
+ ($probstatus eq 'no_feedback_ever')) {
if ($Apache::lonhomework::history{"resource.$part.solved"} =~/^correct_/) {
$numcorrect ++;
} else {
@@ -380,7 +380,7 @@
}
if ($currtries == $maxtries) {
$earlyout = 1;
- } else {
+ } else {
$numgraded ++;
}
last if ($earlyout);
@@ -1211,27 +1211,27 @@
unless ($env{'environment.nocodemirror'}) {
# dropdown menus
- $result .= Apache::lonmenu::create_submenu("#", "",
+ $result .= Apache::lonmenu::create_submenu("#", "",
&mt("Problem Templates"), template_dropdown_datastructure());
- $result .= Apache::lonmenu::create_submenu("#", "",
+ $result .= Apache::lonmenu::create_submenu("#", "",
&mt("Response Types"), responseblock_dropdown_datastructure());
- $result .= Apache::lonmenu::create_submenu("#", "",
+ $result .= Apache::lonmenu::create_submenu("#", "",
&mt("Conditional Blocks"), conditional_scripting_datastructure());
- $result .= Apache::lonmenu::create_submenu("#", "",
+ $result .= Apache::lonmenu::create_submenu("#", "",
&mt("Miscellaneous"), misc_datastructure());
}
- $result .= Apache::lonmenu::create_submenu("#", "",
+ $result .= Apache::lonmenu::create_submenu("#", "",
&mt("Help") . ' <img src="/adm/help/help.png" alt="' . &mt("Help") .
- '" style="vertical-align:text-bottom; height: auto; margin:0; "/>',
+ '" style="vertical-align:text-bottom; height: auto; margin:0; "/>',
helpmenu_datastructure(),"");
$result.="</ol></div>";
-
- $result .= '</div></div>' .
+
+ $result .= '</div></div>' .
&Apache::lonxml::message_location() .
&Apache::loncommon::xmleditor_js() .
'<textarea ' . &Apache::edit::element_change_detection() .
@@ -1267,7 +1267,7 @@
autoCloseBrackets: true,
height: "auto",
styleActiveLine: true,
-
+
extraKeys: {
"Tab": "indentMore",
"Shift-Tab": "indentLess",
@@ -1393,7 +1393,7 @@
# value 3: name of help topic ???
sub get_template_list{
my ($extension) = @_;
-
+
my @files = glob($Apache::lonnet::perlvar{'lonIncludes'}.
'/templates/*.'.$extension);
@files = map {[$_,&mt(&Apache::lonnet::metadata($_, 'title')),
@@ -1573,7 +1573,7 @@
}
#
-# Sets interval for current user so time left will be zero, either for the entire folder
+# Sets interval for current user so time left will be zero, either for the entire folder
# containing the current resource, or just the resource, depending on value of first item
# in interval array retrieved from EXT("resource.0.interval");
#
@@ -1597,7 +1597,7 @@
$key =~ s/\s+$//;
if ($env{'form.LC_interval_done_proctorpass'} ne $secret) {
return ('fail',
- &mt('Incorrect key entered by proctor'));
+ &mt('Incorrect key entered by proctor'));
}
}
if ($first_access+$timelimit > $now) {
@@ -1620,7 +1620,7 @@
return ('ok');
} else {
return ('fail',&mt('Error ending timed event: [_1]',$result));
- }
+ }
} else {
return ('fail',&mt('Timed event already ended'));
}
@@ -1651,7 +1651,7 @@
#check if we know where we are
if ($env{'request.course.fn'} && !&Apache::lonnet::symbread('','',1,1)) {
# if we are browsing we might not be able to know where we are
- if ($Apache::lonhomework::browse ne 'F' &&
+ if ($Apache::lonhomework::browse ne 'F' &&
$env{'request.state'} ne "construct") {
#should know where we are, so ask
&unset_permissions();
More information about the LON-CAPA-cvs
mailing list