From a1e758a1390d045046ed1aa6022a3f62647ef261 Mon Sep 17 00:00:00 2001 From: fox_two <> Date: Mon, 4 Jun 2001 18:28:00 +0000 Subject: [PATCH] prepared for XHTML (
->
). --- selfforum-cgi/shared/Encode/Posting.pm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/selfforum-cgi/shared/Encode/Posting.pm b/selfforum-cgi/shared/Encode/Posting.pm index ffafbf1..395f71f 100644 --- a/selfforum-cgi/shared/Encode/Posting.pm +++ b/selfforum-cgi/shared/Encode/Posting.pm @@ -158,8 +158,8 @@ sub answer_field ($$) { my $area = $$posting; my $qchar = $params -> {quoteChars}; - $area =~ s/
/\n/g; #
=> \n - $area =~ s/&(?:#160|nbsp);/ /g; # nbsp => ' ' + $area =~ s//\n/g; #
=> \n + $area =~ s/&(?:#160|nbsp);/ /g; # nbsp => ' ' $area =~ s/^(.)/\177$1/gm if ($params -> {quoteArea}); # shift a quoting character $area =~ s/^(\177+)/$qchar x length ($1)/gem; # decode normalized quoting characters @@ -208,12 +208,12 @@ sub message_field ($$) { my $posting = ${+shift}; my $params = shift || {}; - my $break = '
'; + my $break = '
'; if ($params -> {quoting}) { # quotes are displayed as special? my @array = [0 => []]; - for (split /
/ => $posting) { + for (split // => $posting) { my $l = length ((/^(\177*)/)[0]); if ($array[-1][0] == $l) { push @{$array[-1][-1]} => $_; @@ -225,7 +225,7 @@ sub message_field ($$) { shift @array unless @{$array[0][-1]}; my $ll=0; - $posting = join '
' => map { + $posting = join $break => map { my $string = $_->[0] ? (($ll and $ll != $_->[0]) ? $break : '') . join join ($break => @{$_->[-1]}) @@ -248,4 +248,4 @@ sub message_field ($$) { # # -### end of Encode::Posting ##################################################### \ No newline at end of file +### end of Encode::Posting ##################################################### -- 2.34.1