--- loncom/interface/lonsyllabus.pm 2008/10/22 08:56:35 1.68 +++ loncom/interface/lonsyllabus.pm 2008/11/07 18:06:19 1.69 @@ -1,7 +1,7 @@ # The LearningOnline Network # Syllabus # -# $Id: lonsyllabus.pm,v 1.68 2008/10/22 08:56:35 bisitz Exp $ +# $Id: lonsyllabus.pm,v 1.69 2008/11/07 18:06:19 bisitz Exp $ # # Copyright Michigan State University Board of Trustees # @@ -183,7 +183,9 @@ ENDSCRIPT } else { $r->print('\begin{tabular}{|p{0.45\textwidth}|p{0.45\textwidth}|}\hline'); } - foreach my $element (sort keys %coursepersonnel) { + my @personnel=sort keys %coursepersonnel; + my $lastpers=$personnel[$#personnel]; + foreach my $element (@personnel) { if ($target ne 'tex') { $r->print(&Apache::lonhtmlcommon::row_title($element)); } else { @@ -206,7 +208,8 @@ ENDSCRIPT } } if ($target ne 'tex') { - $r->print(&Apache::lonhtmlcommon::row_closure()); + my $lastclose=$element eq $lastpers?1:0; + $r->print(&Apache::lonhtmlcommon::row_closure($lastclose)); } else { $r->print('\\\\ \hline'); }