Gossamer Forum
Home : Products : DBMan : Discussions :

How to Get rid of <br> during modifying.

Quote Reply
How to Get rid of <br> during modifying.
I have replaced the `` with <br> in encode sub.

This will look like something given below:

##### Endcode Sub########

my
(%hash) = @_;
my ($tmp, $col, $output);

foreach $col (@db_cols) {
$tmp = $hash{$col};
$tmp =~
s/^\s+//g; # Trim leading blanks...
$tmp =~
s/\s+$//g; # Trim trailing blanks...
$tmp =~
s/\Q$db_delim\E/~~/og; # Change delimeter to ~~ symbol.
$tmp =~
s/\n/<br>/g; # Change newline to `` symbol.
$tmp =~
s/\r//g; # Remove Windows linefeed character.
$output .= $tmp . $db_delim;
# Build Output.
}
chop $output;
# remove extra delimeter.
$output .=
"\n"; # add linefeed char.
return $output;


******** End of Encode Sub ************

NOW I Can see reasonable line breaks when I view my input. Which I was not seeing before.

But the PROBLEM is now, When I try to MODIFY input it shows <br><br> after every line break.

Is there some way to get rid of <br> during modyifying along with normal viewing with <br>. Both can go togather???

Please Help me!!!

I really need your help.

Zeshan.
Subject Author Views Date
Thread How to Get rid of <br> during modifying. zeshan 3058 Mar 9, 2003, 5:10 PM
Thread Re: [zeshan] How to Get rid of <br> during modifying.
esm 2958 Mar 9, 2003, 8:12 PM
Thread Re: [esm] How to Get rid of <br> during modifying.
zeshan 2956 Mar 10, 2003, 9:04 AM
Post Re: [zeshan] How to Get rid of <br> during modifying.
esm 2945 Mar 10, 2003, 10:02 AM