From nobody@FreeBSD.org  Wed Mar 19 12:56:08 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 4D38A3F9
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 12:56:08 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 2127F1E1
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 12:56:08 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2JCu7p1077178
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Mar 2014 12:56:08 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2JCu7rs077177;
	Wed, 19 Mar 2014 12:56:07 GMT
	(envelope-from nobody)
Message-Id: <201403191256.s2JCu7rs077177@cgiserv.freebsd.org>
Date: Wed, 19 Mar 2014 12:56:07 GMT
From: Dru Lavigne <dru@freebsd.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: line numbers in program listings cycle from 0-9
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187733
>Category:       docs
>Synopsis:       line numbers in program listings cycle from 0-9
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    wblock
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 19 13:00:00 UTC 2014
>Closed-Date:    Thu Mar 20 04:14:01 UTC 2014
>Last-Modified:  Thu Mar 20 04:20:00 UTC 2014
>Originator:     Dru Lavigne
>Release:        
>Organization:
>Environment:
>Description:
If a program listing is more than 9 lines long, the line numbers cycle back to 0-9. For example, the first program listing in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-iscsi.html is 15 lines long, but the lines are numbered from 1-9, then from 0-5.
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-doc->wblock 
Responsible-Changed-By: wblock 
Responsible-Changed-When: Wed Mar 19 15:02:17 UTC 2014 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187733 

From: Allan Jude <freebsd@allanjude.com>
To: bug-followup@FreeBSD.org, dru@freebsd.org
Cc:  
Subject: Re: docs/187733: line numbers in program listings cycle from 0-9
Date: Wed, 19 Mar 2014 16:40:57 -0400

 This is a multi-part message in MIME format.
 --------------030209000702000500070908
 Content-Type: text/plain; charset=ISO-8859-1
 Content-Transfer-Encoding: 7bit
 
 Warren and I have been working on this for over a week
 
 The attached patch resolves this for up to 3 digit numbers (999 lines)
 and also changes the font colour to make it more readable and
 differentiate it from the output text, make it scale properly if the
 user zooms the font size (using em the font-width unit of measure,
 instead of a fixed number of pixels). It also centers the numbers in the
 line number column (actually the left-border of the block level
 element), and removes the space after the numbers as it was throwing off
 the measurements and alignment.
 
 -- 
 Allan Jude
 
 --------------030209000702000500070908
 Content-Type: text/plain; charset=windows-1252;
  name="docs.css.linenum_v5.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
  filename="docs.css.linenum_v5.patch"
 
 Index: share/misc/docbook.css
 ===================================================================
 --- share/misc/docbook.css	(revision 44280)
 +++ share/misc/docbook.css	(working copy)
 @@ -272,7 +272,7 @@
  	background-color: #edc;
  	border-style: solid;
  	border-color: #EEB985;
 -	border-width: 0 0 0 24px;
 +	border-width: 0 0 0 2.25em;
  	border-radius: 6px;
  	counter-reset: code;
  }
 @@ -284,7 +284,7 @@
  	background-color: #eee;
  	border-style: solid;
  	border-color: #BABABA;
 -	border-width: 0 0 0 24px;
 +	border-width: 0 0 0 2.25em;
  	border-radius: 6px;
  	counter-reset: code;
  }
 @@ -292,18 +292,19 @@
  span.verbatim {
  	counter-increment: code;
  	display: block;
 -	padding: 0 13px 0 29px;
 +	padding: 0 0.5em 0 3.5em;
  	position: relative;
 -	margin: 0 -8px 0 -24px;
 +	margin: 0 -0.3em 0 -3em;
  	overflow: hidden;
  }
  
  span.verbatim:before {
 -	width: 24px;
 -	text-align: right;
 -	content: counter(code) " ";
 +	width: 3em;
 +	text-align: center;
 +	content: counter(code);
  	position: absolute;
 -	left: -10px;
 +	left: 0;
 +	color: #404040;
  }
  
  @media screen {  /* hide from IE3 */
 
 --------------030209000702000500070908--
State-Changed-From-To: open->closed 
State-Changed-By: wblock 
State-Changed-When: Thu Mar 20 04:13:23 UTC 2014 
State-Changed-Why:  
Fixed, thanks to much work by Allan Jude.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187733 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/187733: commit references a PR
Date: Thu, 20 Mar 2014 04:13:09 +0000 (UTC)

 Author: wblock
 Date: Thu Mar 20 04:13:05 2014
 New Revision: 44293
 URL: http://svnweb.freebsd.org/changeset/doc/44293
 
 Log:
   Fix the display of line numbers in screen and programlisting elements.
   Later version of the patch supplied by Allan Jude
   <freebsd@allanjude.com>.
   
   PR:		docs/187733
   Submitted by:	Dru Lavigne <dru@freebsd.org>
 
 Modified:
   head/share/misc/docbook.css
 
 Modified: head/share/misc/docbook.css
 ==============================================================================
 --- head/share/misc/docbook.css	Wed Mar 19 23:47:11 2014	(r44292)
 +++ head/share/misc/docbook.css	Thu Mar 20 04:13:05 2014	(r44293)
 @@ -272,7 +272,7 @@ html {
  	background-color: #edc;
  	border-style: solid;
  	border-color: #EEB985;
 -	border-width: 0 0 0 24px;
 +	border-width: 0 0 0 2.5em;
  	border-radius: 6px;
  	counter-reset: code;
  }
 @@ -284,7 +284,7 @@ html {
  	background-color: #eee;
  	border-style: solid;
  	border-color: #BABABA;
 -	border-width: 0 0 0 24px;
 +	border-width: 0 0 0 2.5em;
  	border-radius: 6px;
  	counter-reset: code;
  }
 @@ -292,18 +292,19 @@ html {
  span.verbatim {
  	counter-increment: code;
  	display: block;
 -	padding: 0 13px 0 29px;
 +	padding: 0 0.5em 0 3.75em;
  	position: relative;
 -	margin: 0 -8px 0 -24px;
 +	margin: 0 -0.3em 0 -3.85em;
  	overflow: hidden;
  }
  
  span.verbatim:before {
 -	width: 24px;
 +	width: 3em;
  	text-align: right;
 -	content: counter(code) " ";
 +	content: counter(code);
  	position: absolute;
 -	left: -10px;
 +	left: 0;
 +	color: #404040;
  }
  
  @media screen {  /* hide from IE3 */
 _______________________________________________
 svn-doc-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-doc-all
 To unsubscribe, send any mail to "svn-doc-all-unsubscribe@freebsd.org"
 
>Unformatted:
