preparing for 6.2.4 bugfix cycle
This commit is contained in:
parent
eeecbe8afb
commit
ce9cfe43a2
4 changed files with 18 additions and 12 deletions
|
|
@ -1,3 +1,8 @@
|
||||||
|
6.2.4
|
||||||
|
- Changed text processor to convert HTML tags into text rather than
|
||||||
|
discarding them.
|
||||||
|
|
||||||
|
|
||||||
6.2.3
|
6.2.3
|
||||||
- Changed to new POD format.
|
- Changed to new POD format.
|
||||||
- Fixed GUID related bugs in search indexer and passive profiling.
|
- Fixed GUID related bugs in search indexer and passive profiling.
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,5 +1,5 @@
|
||||||
package WebGUI;
|
package WebGUI;
|
||||||
our $VERSION = "6.2.3";
|
our $VERSION = "6.2.4";
|
||||||
our $STATUS = "beta";
|
our $STATUS = "beta";
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -156,19 +156,20 @@ The content type to use as formatting. Valid types are 'html', 'text', 'code', a
|
||||||
sub format {
|
sub format {
|
||||||
my ($content, $contentType) = @_;
|
my ($content, $contentType) = @_;
|
||||||
$contentType = 'mixed' unless ($contentType);
|
$contentType = 'mixed' unless ($contentType);
|
||||||
if ($contentType eq "mixed") {
|
if ($contentType eq "text" || $contentType eq "code") {
|
||||||
unless ($content =~ /\<div/ig || $content =~ /\<br/ig || $content =~ /\<p/ig) {
|
|
||||||
$content =~ s/\n/\<br \/\>/g;
|
|
||||||
}
|
|
||||||
} elsif ($contentType eq "text") {
|
|
||||||
$content =~ s/\t/ /g;
|
|
||||||
$content =~ s/\n/\<br \/\>/g;
|
|
||||||
} elsif ($contentType eq "code") {
|
|
||||||
$content =~ s/&/&/g;
|
$content =~ s/&/&/g;
|
||||||
$content =~ s/\</</g;
|
$content =~ s/\</</g;
|
||||||
$content =~ s/\>/>/g;
|
$content =~ s/\>/>/g;
|
||||||
$content =~ s/\n/\<br \/\>/g;
|
$content =~ s/\n/\<br \/\>/g;
|
||||||
$content =~ s/\t/ /g;
|
$content =~ s/\t/ /g;
|
||||||
|
}
|
||||||
|
if ($contentType eq "mixed") {
|
||||||
|
unless ($content =~ /\<div/ig || $content =~ /\<br/ig || $content =~ /\<p/ig) {
|
||||||
|
$content =~ s/\n/\<br \/\>/g;
|
||||||
|
}
|
||||||
|
} elsif ($contentType eq "text") {
|
||||||
|
$content =~ s/ / /g;
|
||||||
|
} elsif ($contentType eq "code") {
|
||||||
$content =~ s/ / /g;
|
$content =~ s/ / /g;
|
||||||
$content = '<div style="font-family: monospace;">'.$content.'</div>';
|
$content = '<div style="font-family: monospace;">'.$content.'</div>';
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue