package Everything::HTML;
######################################################################
+#######
#
# Everything::HTML.pm
#
# Copyright 1999,2000 Everything Development Company
#
# A module for the HTML stuff in Everything. This
# takes care of CGI, cookies, and the basic HTML
# front end.
#
######################################################################
+#######
use strict;
use Everything;
use Everything::MAIL;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
I, of course, have no way of knowing if this has been changed or updated on PerlMonks to use something other than CGI.pm but the majority of older Perl programs did.
Apparently the Everything Engine is no different.
I never did like CGI.pm. Too bloated for the simple message board scripts I wrote.
Also I wanted more control. It was easier just to write my own code from scratch for that.
But, if it is still what PerlMonks has running on the back-end for handling CGI, some scripts,
possibly some versions of CGI.pm use something like $value =~ s/\n/ /g; replacing the newline character with whitespace, globally.
So instead of converting to HTML the return is converted to a space.
Instead, do something like $value =~ s/\n/<br \/>\n/g;
Tom
|