[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 06 Nov 2003 06:54:51 -0000
albertel Thu Nov 6 01:54:51 2003 EDT
Modified files:
/loncom/homework structuretags.pm
Log:
- no need to call it twice
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.224 loncom/homework/structuretags.pm:1.225
--- loncom/homework/structuretags.pm:1.224 Wed Nov 5 16:43:11 2003
+++ loncom/homework/structuretags.pm Thu Nov 6 01:54:51 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.224 2003/11/05 21:43:11 www Exp $
+# $Id: structuretags.pm,v 1.225 2003/11/06 06:54:51 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1003,10 +1003,9 @@
&Apache::edit::end_row().&Apache::edit::start_spanning_row();
} elsif ($target eq 'modified') {
my $constructtag=&Apache::edit::get_new_args($token,$parstack,
- $safeeval,'id').
- &Apache::edit::get_new_args($token,$parstack,
- $safeeval,'display');
+ $safeeval,'id','display');
if ($constructtag) {
+ #limiting ids to only letters numbers, and space
$token->[2]->{'id'}=~s/[^A-Za-z0-9 ]//gs;
$result = &Apache::edit::rebuild_tag($token);
$result.=&Apache::edit::handle_insert();