Gossamer Forum
Home : Products : DBMan : Customization :

Stop (carriage returns) from being removed...

Quote Reply
Stop (carriage returns) from being removed...
How do I keep line feeds and carriage returns from being removed in a text description field?

I have a 45x10 description field that displays multi-paragraphs fine, but once the record is added (sub html_record) removes carriage the returns. The funny part is if I go to modify a record all the carriage returns are there.


------------------
Larry "NgtCrwlr" Mingus
www.makeitsimple.com
Quote Reply
Re: Stop (carriage returns) from being removed... In reply to
They're not being removed. They're just not visible on an html page.

In html_record, just after

my (%rec) = @_;

add

$rec{'Description'} =~ s/\n/<BR>/g;

Be sure to change Description if that isn't the field name in your database.


------------------
JPD





Quote Reply
Re: Stop (carriage returns) from being removed... In reply to
Thank you once again... Smile

I had a feeling that this one would be easier than the date sort. I still haven't had a chance to get back to that yet. However the temp work around has allowed me the time to get the three important databases in and working. Just call me Mr. Happy!

I have been doing some PERL reading and I am going to give that date sub a shot on my own. I may have to ask a few questions but I will give it my best shot. Besides, it would be very good for me to understand it rather than paste it. Wink

Thanks Carol


------------------
Larry "NgtCrwlr" Mingus
www.makeitsimple.com