Bug 151438

Summary: query-cgi use monospace font
Product: Documentation Reporter: mwisnicki+freebsd
Component: Books & ArticlesAssignee: Bugmeister <bugmeister>
Status: Closed Overcome By Events    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description mwisnicki+freebsd 2010-10-13 23:50:05 UTC
Given technical nature of most problem reports, using proportional font is a really bad choice. It makes most messages hard to read and some of them (logs, code snippets) a complete mess.

Fix: 

Add to www/en/layout/css/query-pr.css:

.mfield {
  font-family: Consolas,"Courier New",Courier,monospace;
}

Or to keep headers in proportional:

.replyblock, .patchblock, .auditblock {
  font-family: verdana, sans-serif;
}
.mfield, .replyblock tr:last-child {
  font-family: Consolas,"Courier New",Courier,monospace;
}

Also, preppend Consolas before 'Courier New' because it's so much nicer (on Win7):

pre, .patchblock .content {
  font-family: Consolas,"Courier New",Courier,monospace;
}
Comment 1 Gavin Atkinson freebsd_committer freebsd_triage 2010-10-15 17:08:48 UTC
Responsible Changed
From-To: freebsd-www->bugmeister

query-pr is bugmeister territory.  This is probably a good idea, 
but I think it's probably only good to do for the multiline 
sections.
Comment 2 mwisnicki+freebsd 2011-06-23 14:02:12 UTC
Additionally it would be nice if whitespace was preserved.

One way to do that is by modifying cgi to wrap content in <pre> and
stop adding <br>.
Alternatively this could be achieved by following CSS:

.replyblock, .patchblock, .auditblock {
 white-space: normal;
}
.mfield, .replyblock tr:last-child {
 white-space: pre;
}
.mfield br, .replyblock tr:last-child br {
 display: none;
}
Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2014-11-22 17:49:01 UTC
Closing this, since GNATS has been replaced by Bugzilla.