--- loncom/xml/londefdef.pm 2002/07/31 14:55:56 1.80 +++ loncom/xml/londefdef.pm 2002/08/01 18:15:09 1.81 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Tags Default Definition Module # -# $Id: londefdef.pm,v 1.80 2002/07/31 14:55:56 sakharuk Exp $ +# $Id: londefdef.pm,v 1.81 2002/08/01 18:15:09 sakharuk Exp $ # # # Copyright Michigan State University Board of Trustees @@ -1405,6 +1405,9 @@ EDITBUTTON $currentstring = $Apache::londefdef::table[-1]{'output'}; $currentstring =~ s/\\\\\s+\\\\/\\\\/g; pop @Apache::londefdef::table; + if (-e $filename) { + unlink $filename; + } } } return $currentstring;