From mboxrd@z Thu Jan 1 00:00:00 1970 From: jfunk@ez2get.com To: gnats-gnats@sourceware.cygnus.com Subject: gnatsweb/194: Audit-Trail word-wrap Date: Thu, 17 May 2001 19:54:00 -0000 Message-id: <20010518025233.28719.qmail@sourceware.cygnus.com> X-SW-Source: 2001-q2/msg00117.html List-Id: >Number: 194 >Category: gnatsweb >Synopsis: Audit-Trail word-wrap >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Thu May 17 19:54:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Jason Funk >Release: 2.7 >Organization: >Environment: Linux >Description: On my browser the Audit-Trail (enclosed in a PRE block) would not word-wrap. This is hard to read if you have a long -Why line. I hacked a solution (see Fix). Don't know if you have this fixed in 2.8. >How-To-Repeat: >Fix: # Massive hack on my part to cause Why text to be word-wrapped. # Word-wrapping is not required for PRE blocks. # Originally was: # print "

Audit Trail:

\n", # $q->pre($q->escapeHTML($fields{'Audit-Trail'})); print "

Audit Trail:

\n"; my $lines = $q->escapeHTML($fields{'Audit-Trail'}); $lines =~ s/ /    /gm; $lines =~ s/$/
/gm; $lines =~ s/
$//; # previous substitution added one too many
's print $q->tt($lines); >Release-Note: >Audit-Trail: >Unformatted: