--- loncom/interface/loncommon.pm 2002/04/26 18:57:27 1.36 +++ loncom/interface/loncommon.pm 2002/05/09 15:56:02 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.36 2002/04/26 18:57:27 matthew Exp $ +# $Id: loncommon.pm,v 1.37 2002/05/09 15:56:02 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -336,6 +336,24 @@ END } # end of sub linked_select_forms { ############################################################### + +=item csv_translate($text) + +Translate $text to allow it to be output as a 'comma seperated values' +format. + +=cut + +sub csv_translate { + my $text = shift; + $text =~ s/\"/\"\"/g; + $text =~ s/\n//g; + return $text; +} + +############################################################### + +############################################################### ## Home server