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.
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.