--- loncom/xml/londefdef.pm 2007/04/06 10:41:45 1.364 +++ loncom/xml/londefdef.pm 2007/05/10 09:50:10 1.365 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.364 2007/04/06 10:41:45 foxr Exp $ +# $Id: londefdef.pm,v 1.365 2007/05/10 09:50:10 foxr Exp $ # # # Copyright Michigan State University Board of Trustees @@ -1609,7 +1609,11 @@ sub end_a { &Apache::lonxml::get_param('name',$parstack,$safeeval,undef,1); if ($href =~ /\S/) { $href =~ s/([^\\])%/$1\\\%/g; - $currentstring .= ' ({\tt URI:'.&Apache::lonxml::latex_special_symbols($href).'})'; + # Substitute special symbols... and allow line breaks at each / + # + $href = &Apache::lonxml::latex_special_symbols($href); + $href =~ s/\//\/\\-/g; # Map / to /\- to allow hyphenation. + $currentstring .= ' ({\tt URI:'.$href.'})'; } elsif ($name =~ /\S/) { $currentstring .= ' ({\tt Anchor:'.&Apache::lonxml::latex_special_symbols($name).'})'; } else {