Gossamer Forum
Home : Products : DBMan : Discussions :

Re: Formatting question

Quote Reply
Re: Formatting question In reply to
This _may_ work...

Code:
my @lines = split /\n/, $rec{'Description'}; # Split the description at each \n and store in @lines
foreach (@lines) { # Loop through @lines
if (length($_) > 20) { # If length of line > 20...
s/(.{10})/$1<BR>/g; # Split it into 10 char chunks
}
$_ .= "<BR>"; # Append a br tag to every line
$rec{'Description'} .= $_; # Re-join for storage within DBMAN
}
Installations:http://www.wiredon.net/gt/

Subject Author Views Date
Thread Formatting question eric74 4420 Jul 11, 2001, 4:50 AM
Thread Re: Formatting question
Paul 4346 Jul 11, 2001, 6:11 AM
Thread Re: Formatting question
eric74 4338 Jul 11, 2001, 7:55 AM
Thread Re: Formatting question
Paul 4346 Jul 11, 2001, 8:15 AM
Thread Re: Formatting question
AstroBoy 4356 Jul 11, 2001, 8:13 PM
Thread Re: Formatting question
eric74 4302 Jul 30, 2001, 2:40 PM
Thread Re: Formatting question
Paul 4281 Jul 30, 2001, 6:32 PM
Thread Re: Formatting question
lanerj 4265 Jul 31, 2001, 4:46 AM
Thread Re: Formatting question
Paul 4269 Jul 31, 2001, 5:05 AM
Post Re: Formatting question
lanerj 4256 Jul 31, 2001, 5:46 AM
Post Re: Formatting question
eric74 4250 Jul 31, 2001, 2:40 PM
Post Re: Formatting question
eric74 4258 Jul 31, 2001, 2:44 PM