--- loncom/homework/edit.pm 2001/07/10 22:06:42 1.17
+++ loncom/homework/edit.pm 2001/07/13 16:15:01 1.18
@@ -183,6 +183,15 @@ sub insert_numericalresponse {
';
}
+sub insert_stringresponse {
+ return '
+
+
+
+
+';
+}
+
sub insert_optionresponse {
return '
@@ -262,6 +271,7 @@ sub rebuild_tag {
if ($token->[0] eq 'S') {
$result = '<'.$token->[1];
while (my ($key,$val)= each(%{$token->[2]})) {
+ $val=~s:^\s|\s$::g;
$val=~s:"::g; #"
&Apache::lonxml::debug("setting :$key: to :$val:");
$result.=' '.$key.'="'.$val.'"';