[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 10 Feb 2004 22:11:37 -0000
www Tue Feb 10 17:11:37 2004 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
Put anchors between parts.
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.232 loncom/homework/structuretags.pm:1.233
--- loncom/homework/structuretags.pm:1.232 Fri Feb 6 17:36:40 2004
+++ loncom/homework/structuretags.pm Tue Feb 10 17:11:37 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.232 2004/02/06 22:36:40 albertel Exp $
+# $Id: structuretags.pm,v 1.233 2004/02/10 22:11:37 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -984,6 +984,8 @@
}
}
if (($Apache::lonhomework::type eq 'exam') && ($allow_print_points)) { $result .= '\fbox{\textit{'.$weight.' pt}}';}
+ } elsif ($target eq 'web') {
+ $result.='<a name="'.&Apache::lonnet::escape($Apache::inputtags::part).'" />';
}
}
}