[LON-CAPA-cvs] cvs: loncom(version_2_9_X) /homework structuretags.pm

raeburn raeburn@source.lon-capa.org
Thu, 28 Jan 2010 18:15:51 -0000


raeburn		Thu Jan 28 18:15:51 2010 EDT

  Modified files:              (Branch: version_2_9_X)
    /loncom/homework	structuretags.pm 
  Log:
  - Backport 1.463.
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.444.4.2 loncom/homework/structuretags.pm:1.444.4.3
--- loncom/homework/structuretags.pm:1.444.4.2	Fri Aug 14 12:32:04 2009
+++ loncom/homework/structuretags.pm	Thu Jan 28 18:15:51 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.444.4.2 2009/08/14 12:32:04 raeburn Exp $
+# $Id: structuretags.pm,v 1.444.4.3 2010/01/28 18:15:51 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1106,7 +1106,9 @@
 			'\textit{'.$duedate_text.'} '.$toc_line;
 		} else {
 		    $frontmatter.= $begin_doc.$toc_line;
-		    if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) { $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';}
+                    if ($Apache::lonhomework::type eq 'exam' and $allow_print_points==1) {
+                        $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';
+                    }
 		}
 	    } else {
 		$frontmatter .= '\vskip 1mm\textit{'.$duedate_text.'} \\\\\\\\'.$startminipage;
@@ -1114,7 +1116,9 @@
 	} else {
 	    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}}';}
+                if (($Apache::lonhomework::type eq 'exam') and ($allow_print_points==1)) {
+                    $frontmatter .= '\fbox{\textit{'.$weight.' pt}}';
+                }
 	    } else {
 		$frontmatter .= '\vskip 1mm \\\\\\\\'.$startminipage;
 	    }
@@ -1756,7 +1760,9 @@
 				    '.disableexampointprint'}) eq 'yes') {
 			$allow_print_points=0;
 		    }
-		    if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) { $result .= '\fbox{\textit{'.$weight.' pt}}';}
+                    if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) { 
+                        $result .= '\vskip 10mm\fbox{\textit{'.$weight.' pt}}';
+                    }
 		} elsif ($target eq 'web') {
 		    $result.='<a name="'.&escape($Apache::inputtags::part).'" />';
 		}