Some time back I had posted about being able to show line breaks in textareas so that records entered would look the same when you viewed them, the solution ended up being this:
$rec{'fieldname'} =~ s/\n/<BR>/g;
placed at the top of the sub html_record.
However, I'd also like to have something show the spaces as well so that indents etc show up correctly. I tried this:
=~ s/\s/ /g;
But that ended up stripping out extra spaces and you'd end up seeing one loooooooong string of text.
Any ideas what that should be? I tried doing a google and wasn't able to find what I needed.
Thanks!
$rec{'fieldname'} =~ s/\n/<BR>/g;
placed at the top of the sub html_record.
However, I'd also like to have something show the spaces as well so that indents etc show up correctly. I tried this:
=~ s/\s/ /g;
But that ended up stripping out extra spaces and you'd end up seeing one loooooooong string of text.
Any ideas what that should be? I tried doing a google and wasn't able to find what I needed.
Thanks!