Removed extra carriage returns produced by filtering process.
This commit is contained in:
parent
b76419abe6
commit
e69d1a7c53
1 changed files with 3 additions and 1 deletions
|
|
@ -59,7 +59,9 @@ use WebGUI::Session;
|
|||
sub cleanSegment {
|
||||
my ($style, $value);
|
||||
$value = $_[0];
|
||||
$value =~ s/\r/\n/g;
|
||||
if ($value =~ s/\r/\n/g) {
|
||||
$value =~ s/\n\n/\n/g
|
||||
}
|
||||
$value =~ m/(\<style.*?\/style\>)/ixsg;
|
||||
$style = $1;
|
||||
$value =~ s/\A.*?\<body.*?\>(.*?)/$style$1/ixsg;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue