Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 57639

Summary: Unnecessary/Problematic <pre> tags around messages
Product: Gentoo Infrastructure Reporter: rayntosca
Component: BugzillaAssignee: Jeffrey Forman (RETIRED) <jforman>
Status: RESOLVED UPSTREAM    
Severity: normal CC: flash3001
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
URL: http://bugs.gentoo.org/show_bug.cgi?id=45100
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: How the text should be displayed
Non-W3C Standards Compliant Display

Description rayntosca 2004-07-19 14:12:59 UTC
Every message is wrapped in <pre>...</pre> tags, but there are no <cr>'s in the text, so for browsers that actually implement the HTML standard correctly, the lines go way, way off to the right.

Reproducible: Always
Steps to Reproduce:
1. View the page in a standards compliant web browser
Actual Results:  
The bug report was annoyingly inconvenient to read.

Expected Results:  
Either drop the <pre>...</pre> tags, or hardwrap emails at 78 characters (or where appropriate if the email is <format-flowed>)

n/a
Comment 1 Kurt Lieber (RETIRED) gentoo-dev 2004-08-27 04:53:17 UTC
Can you give an example link where you see this behavior?  This page looks fine in Moz Firefox, so if that's not a "standards compliant web browser" then you'll need to provide details about that, too.
Comment 2 rayntosca 2004-08-27 11:15:27 UTC
Created attachment 38315 [details]
How the text should be displayed
Comment 3 rayntosca 2004-08-27 11:16:18 UTC
Created attachment 38316 [details]
Non-W3C Standards Compliant Display
Comment 4 rayntosca 2004-08-27 11:17:40 UTC
Look at the URL I included with the bug report (Bug # 45100). Go down to Additional Comment #6. Look at the second line that starts: "The difficulty here is that, does anyone actually run a vanilla gentoo ...". That line contains 149 characters and is inside <pre>...</pre> tags.  The next comment is even worse. It contains a line (Starts with: "I would prefer to run vanilla gentoo...") that is 624 characters long. 

iCab displays both lines as it should, 149 and 624 characters and then a return. Mozilla, IE and others display the line incorrectly and wrap it at the window width. See the attached files.
Comment 5 rayntosca 2004-08-27 11:38:28 UTC
Semi-Mea Culpa. I thought this was a problem with the templates used at gentoo.org. It's actually a core bug in bugzilla: <http://bugzilla.mozilla.org/show_bug.cgi?id=11901> The code in bugzilla relies on two non-standard behaviors, the first is "wrap=hard" on input and Mozilla, IE and others wrapping text to the window width even when the HTML tags say not to.
Comment 6 Jeffrey Forman (RETIRED) gentoo-dev 2005-05-12 14:51:30 UTC
The line wrap has been put into 2.19.3 of bugzilla, which has not been released yet and is known to be very unstable. I will keep an eye on it.

-Jeffrey