Heya,
I'm trying to get my nph-build to convert all line breaks to BR tags. The goal is to allow people to enter very long descriptions, and preserve the formatting. So, where ever they hit the enter key in the description field (a line break in the data file) a BR tag needs to be entered to format the description accordingly.
(same as what this forum software does!)
I would prefer not to enter any BR tags in $db_file_name but do the substitution when the static pages are being build.
I've tried to insert this line in nph-build.cgi on a few places where I though made sense but to no avail:
Am I approaching this in the correct way? My PERL skills are very suspect. Any help will be appreciated.
Safe swoops
Sangiro
www.dropzone.com
I'm trying to get my nph-build to convert all line breaks to BR tags. The goal is to allow people to enter very long descriptions, and preserve the formatting. So, where ever they hit the enter key in the description field (a line break in the data file) a BR tag needs to be entered to format the description accordingly.
(same as what this forum software does!)
I would prefer not to enter any BR tags in $db_file_name but do the substitution when the static pages are being build.
I've tried to insert this line in nph-build.cgi on a few places where I though made sense but to no avail:
Code:
$db_file_name =~ s/\n/<BR>/gi;Am I approaching this in the correct way? My PERL skills are very suspect. Any help will be appreciated.
Safe swoops
Sangiro
www.dropzone.com