--- loncom/xml/londefdef.pm 2013/09/30 13:44:16 1.448 +++ loncom/xml/londefdef.pm 2013/10/14 17:11:18 1.450 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.448 2013/09/30 13:44:16 raeburn Exp $ +# $Id: londefdef.pm,v 1.450 2013/10/14 17:11:18 raeburn Exp $ # # # Copyright Michigan State University Board of Trustees @@ -3615,7 +3615,11 @@ sub start_iframe { } } $currentstring =~ s/\s+$//; - $currentstring .= '>'; + if ($token->[4] =~ m{/>$}) { + $currentstring .= ' />'; + } else { + $currentstring .= '>'; + } } else { $currentstring = $token->[4]; } @@ -4591,7 +4595,7 @@ sub latex_header { sub clean_docs_httpref { my ($href,$docuri,$cdom,$cnum) = @_; if ($docuri eq '') { - &Apache::lonnet::hreflocation('',$env{'request.filename'}); + $docuri = &Apache::lonnet::hreflocation('',$env{'request.filename'}); } if ($cdom eq '') { $cdom = $env{'course.'.$env{'request.course.id'}.'.domain'};