--- loncom/homework/structuretags.pm 2011/07/04 13:01:57 1.490 +++ loncom/homework/structuretags.pm 2011/07/21 09:18:40 1.491 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: structuretags.pm,v 1.490 2011/07/04 13:01:57 raeburn Exp $ +# $Id: structuretags.pm,v 1.491 2011/07/21 09:18:40 christianto Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1290,7 +1290,7 @@ sub end_problem { } else { $frontmatter.= $begin_doc.$toc_line; if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) { - $frontmatter .= '\fbox{\textit{'.$weight.' pt}}'; + $frontmatter .= '\fbox{\textit{'.$weight.&mt(' pt').'}}'; } } } else { @@ -1300,7 +1300,7 @@ sub end_problem { if (not $env{'request.symb'} =~ m/\.page_/) { $frontmatter .= $begin_doc.$toc_line; if (($Apache::lonhomework::type eq 'exam') and ($allow_print_points==1)) { - $frontmatter .= '\fbox{\textit{'.$weight.' pt}}'; + $frontmatter .= '\fbox{\textit{'.$weight.&mt(' pt').'}}'; } } else { $frontmatter .= '\vskip 1mm \\\\\\\\'.$startminipage; @@ -1991,7 +1991,8 @@ sub start_part { $allow_print_points=0; } if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) { - $result .= '\vskip 10mm\fbox{\textit{'.$weight.' pt}}'; + $result .= '\vskip +10mm\fbox{\textit{'.$weight.&mt(' pt').'}}'; } } elsif ($target eq 'web') {