Gossamer Forum
Home : Products : DBMan : Customization :

insert blank line...

Quote Reply
insert blank line...
I searched the forum, but couldn't find anything, so here goes..

If a user types in some information in a field, and hits enter to skip a line (start a new paragraph), how do I tell perl to show that skipped line in the finished output? When I pull up the records now, it is all bunched together in one big paragraph..

Thanks for any help,
Mike

Quote Reply
Re: insert blank line... In reply to
In your html.pl file under:

Near the top of your sub html_record or sub html_record_long

after:

my (%rec) = @_; # Load any defaults to put in the VALUE field.

Add:

$rec{'Description'} =~ s/\n/<BR>/g; ### creates line breaks in display

changing 'Description' to match the name of your field or fields.

You can add this for each textarea field you have which will contain line breaks.

Hope this helps. More info about working with fields is available in the FAQ noted below Smile


Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/