[LON-CAPA-cvs] cvs: loncom /interface lonviewcoauthors.pm

raeburn raeburn at source.lon-capa.org
Fri Nov 3 21:33:47 EDT 2023


raeburn		Sat Nov  4 01:33:47 2023 EDT

  Modified files:              
    /loncom/interface	lonviewcoauthors.pm 
  Log:
  - Remove trailing whitespace.
  
  
Index: loncom/interface/lonviewcoauthors.pm
diff -u loncom/interface/lonviewcoauthors.pm:1.1 loncom/interface/lonviewcoauthors.pm:1.2
--- loncom/interface/lonviewcoauthors.pm:1.1	Fri Nov  3 01:12:15 2023
+++ loncom/interface/lonviewcoauthors.pm	Sat Nov  4 01:33:47 2023
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to display the coauthors
 #
-# $Id: lonviewcoauthors.pm,v 1.1 2023/11/03 01:12:15 raeburn Exp $
+# $Id: lonviewcoauthors.pm,v 1.2 2023/11/04 01:33:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -306,7 +306,7 @@
         }
         my $forceedit;
         if ($env{'form.forceedit'}) {
-            $forceedit = 1; 
+            $forceedit = 1;
         }
         my $hiddenaction;
         if ($caller eq '/adm/createuser') {
@@ -317,7 +317,7 @@
                   '<input type="hidden" name="caller" value="'.$caller.'" />'."\n".
                   '<input type="hidden" name="state" value="setconfig" />'."\n".
                   '<input type="hidden" name="forceedit" value="'.$forceedit.'" />'."\n".
-                  $hiddenaction. 
+                  $hiddenaction.
                   &Apache::loncommon::start_data_table().
                   &Apache::loncommon::start_data_table_header_row().
                   '<th>'.$lt{'set'}.'</th><th>'.$lt{'val'}.'</th>'.
@@ -351,7 +351,7 @@
 sub print_coauthors {
     my ($r,$auname,$audom,$role,$caller,$settingsref) = @_;
     my %viewsettings;
-    if (ref($settingsref) eq 'HASH') { 
+    if (ref($settingsref) eq 'HASH') {
         %viewsettings = %{$settingsref};
     } else {
         %viewsettings =
@@ -364,7 +364,7 @@
                  rol => 'Role(s)',
                  and => 'and',
                  utd => 'Unable to determine Authoring Space context',
-             );  
+             );
     if (($auname ne '') && ($audom ne '')) {
         my (%shownstatus,%coauthors);
         $r->print("<h3>$lt{'cvl'}</h3>");
@@ -383,7 +383,7 @@
         my ($output,$roletype);
         my @showroles;
         if ($env{'request.role'} eq "au./$env{'user.domain'}/") {
-            @showroles = ('ca','aa'); 
+            @showroles = ('ca','aa');
         } elsif ($viewsettings{'show'} eq 'role') {
             ($roletype) = ($env{'request.role'} =~ m{^(ca|aa)\./$audom/$auname$});
             if ($roletype ne '') {
@@ -408,7 +408,7 @@
                     $userinfo{$username.':'.$domain}{roles} = [$userrole];
                 }
             } else {
-                $userinfo{$username.':'.$domain}{fullname} = 
+                $userinfo{$username.':'.$domain}{fullname} =
                     &Apache::loncommon::plainname($username,$domain,'lastname');
                 $userinfo{$username.':'.$domain}{roles} = [$userrole];
             }
@@ -436,7 +436,7 @@
                                           &Apache::lonnet::plaintext($roletype));
                         } else {
                             $output = &mt('The one user with a [_1] or [_2] role has opted not to be listed.',
-                                          $rolenames[0],$rolenames[1]);  
+                                          $rolenames[0],$rolenames[1]);
                         }
                     } else {
                         if ($roletype) {
@@ -455,7 +455,7 @@
                                       $fullcount,&Apache::lonnet::plaintext($roletype));
                     } else {
                         $output = &mt('All [_1] users with a [_2] or [_3] role have opted to be listed.',
-                                      $fullcount,$rolenames[0],$rolenames[1]); 
+                                      $fullcount,$rolenames[0],$rolenames[1]);
                     }
                 } elsif ($fullcount == 1) {
                     if ($roletype) {
@@ -520,7 +520,7 @@
             } (keys(%showuser));
             foreach my $user (@sorted) {
                 my ($username,$domain) = split(/:/,$user);
-                $count ++; 
+                $count ++;
                 $table .= &Apache::loncommon::start_data_table_row()."\n".
                           '<td>'.$count.'</td>'.
                           '<td>'.&Apache::loncommon::aboutmewrapper($showuser{$user}{fullname},
@@ -532,7 +532,7 @@
                           '</td>';
                 unless ($roletype) {
                     $table .= '<td>'.
-                              join(" $lt{'and'} ", map { &Apache::lonnet::plaintext($_); } 
+                              join(" $lt{'and'} ", map { &Apache::lonnet::plaintext($_); }
                                    @{$showuser{$user}{roles}}).
                               '</td>';
                 }




More information about the LON-CAPA-cvs mailing list