From 8288187279f75e188e9a0fa48215b6f43dd19893 Mon Sep 17 00:00:00 2001 From: joy <> Date: Tue, 4 Mar 2003 18:07:40 -0800 Subject: [PATCH] [project @ 2003-03-04 18:07:40 by joy] various HTML fixes, mostly to avoid broken
s

---
 cgi/bugreport.cgi | 26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

diff --git a/cgi/bugreport.cgi b/cgi/bugreport.cgi
index 1c6f1d4b..9b4df6ac 100755
--- a/cgi/bugreport.cgi
+++ b/cgi/bugreport.cgi
@@ -180,10 +180,11 @@ while(my $line = ) {
 			&quit("$ref: Transition from $normstate to $newstate at $linenum disallowed");
 		}
 
-		if ($newstate eq 'go') {
-			$this .= "
\n";
-		}
+#$this .= "\n
states: $normstate $newstate
\n"; +# if ($newstate eq 'go') { +# $this .= "
\n";
+#		}
 		if ($newstate eq 'html') {
 			$this = '';
 		}
@@ -253,13 +254,15 @@ while(my $line = ) {
 				}
 				$this = "$downloadHtml\n$this$downloadHtml" if $downloadHtml;
 				$downloadHtml = '';
-				$this = "
\n$this
\n" - if $normstate eq 'go' || $normstate eq 'go-nox'; - $this = "$thisheader$this" if $thisheader && !( $normstate eq 'html' );; - $thisheader = ''; +# if ($normstate eq 'go' || $normstate eq 'go-nox') { + if ($normstate ne 'html') { + $this = "
\n$this
\n"; + } if ($normstate eq 'html') { - $this .= " Full text available."; + $this .= " Full text available."; } + $this = "$thisheader$this" if $thisheader && !( $normstate eq 'html' );; + $thisheader = ''; if ($reverse) { $log = "$this\n
$log"; } else { @@ -306,11 +309,12 @@ while(my $line = ) { } } elsif ($normstate eq 'recips') { if (m/^-t$/) { - $this = "

Message sent:

\n"; + $thisheader = "

Message sent:

\n"; } else { s/\04/, /g; s/\n$//; - $this = "

Message sent to ".htmlsanit($_).":

\n"; + $thisheader = "

Message sent to ".htmlsanit($_).":

\n"; } + $this = ""; $normstate= 'kill-body'; } elsif ($normstate eq 'autocheck') { next if !m/^X-Debian-Bugs(-\w+)?: This is an autoforward from (\S+)/; @@ -361,7 +365,7 @@ print "

" . "$debbugs::gProject $debbugs::gBug report logs - " . htmlsanit($status{subject}) . "

\n"; print "$descriptivehead\n"; -printf "

View this report as an mbox folder.

", mboxurl($ref); +printf "

View this report as an mbox folder.

\n", mboxurl($ref); print "
"; print "$log"; print $tail_html; -- 2.39.5