Gossamer Forum
Home : Products : DBMan : Customization :

Line breaks

Quote Reply
Line breaks
I have a couple of text areas set up to add line breaks with this:

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

This works great, except for when you modify the record, then it adds another set of line breaks to the ones that already exist. Is there a way to prevent it from adding that other set?
Thanks in advance!


DBMan SQL Version 1 mods available at:
http://dbmansqlmods.rainbowroomies.com
(Mods based on JPDeni's original mods.)
Quote Reply
Re: [shann123] Line breaks In reply to
I've never had this happen.

Do you just have those lines in the top of sub html_record and if using the short/long mod also within sub html_record_long?

If you added this also to sub html_record_form that could possibly be causing the problem?

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Line breaks In reply to
Hi Lois,
I'm not using the short/long mod, but I did have that at the top of both the html_record_form and html_record. I took that off the record_form and it's working correctly now. I guess I read something wrong when I asked about how to get line breaks in there. Anyway... thanks a bunch!


DBMan SQL Version 1 mods available at:
http://dbmansqlmods.rainbowroomies.com
(Mods based on JPDeni's original mods.)