--- loncom/interface/lonprintout.pm 2002/12/11 20:07:34 1.96 +++ loncom/interface/lonprintout.pm 2002/12/11 21:33:16 1.97 @@ -1,7 +1,7 @@ # The LearningOnline Network # Printout # -# $Id: lonprintout.pm,v 1.96 2002/12/11 20:07:34 www Exp $ +# $Id: lonprintout.pm,v 1.97 2002/12/11 21:33:16 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -465,8 +465,14 @@ ENDPART if ($ENV{'form.url'}=~m/\.page\s*$/) { ($result,$number_of_columns) = &page_cleanup($result); } - } elsif ($ENV{'form.url'}!~/\/(aboutme|syllabus|bulletinboard|smppg)$/) { - $result='\documentclass[letterpaper]{article}\usepackage{calc}\begin{document}Printout of this type of document is currently not supported: '.$ENV{'form.url'}.' \end{document}' + } else { + $result='\documentclass[letterpaper]{article}\usepackage{calc}\begin{document}Printout of this type of document is currently not supported: '; + if ($ENV{'form.url'}=~/\/(aboutme|syllabus|bulletinboard|smppg)$/) { + $result.=$1; + } else { + $result.=$ENV{'form.url'}; + } + $result.=' \end{document}' } } elsif ($choice eq 'Standard LaTeX output for the primary sequence' or $choice eq 'Standard LaTeX output for whole primary sequence') {