From owner-freebsd-www@FreeBSD.ORG Thu Sep 20 01:40:07 2007 Return-Path: Delivered-To: freebsd-www@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40FD716A41B for ; Thu, 20 Sep 2007 01:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id EC1EB13C48A for ; Thu, 20 Sep 2007 01:40:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8K1e6DX078117 for ; Thu, 20 Sep 2007 01:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8K1e6cS078116; Thu, 20 Sep 2007 01:40:06 GMT (envelope-from gnats) Resent-Date: Thu, 20 Sep 2007 01:40:06 GMT Resent-Message-Id: <200709200140.l8K1e6cS078116@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-www@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew Mondor Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3564216A46B for ; Thu, 20 Sep 2007 01:35:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1590513C4DE for ; Thu, 20 Sep 2007 01:35:13 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8K1ZCLI074961 for ; Thu, 20 Sep 2007 01:35:12 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l8K1ZC0x074960; Thu, 20 Sep 2007 01:35:12 GMT (envelope-from nobody) Message-Id: <200709200135.l8K1ZC0x074960@www.freebsd.org> Date: Thu, 20 Sep 2007 01:35:12 GMT From: Matthew Mondor To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: www/116479: cvsweb+enscript formatting bugfix X-BeenThere: freebsd-www@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD Project Webmasters List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Sep 2007 01:40:07 -0000 >Number: 116479 >Category: www >Synopsis: cvsweb+enscript formatting bugfix >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-www >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Sep 20 01:40:06 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Matthew Mondor >Release: >Organization: Pulsar-Zone >Environment: >Description: cvsweb used with enscript for code highlighting would not output the first tab of every line correctly, causing the first level to be badly indented, at least for the case where the code uses tabs rather than spaces. The reason was that after the line number header no tab was found to realign the tabulator before the code line is displayed. >How-To-Repeat: >Fix: @@ -3815,7 +3815,7 @@ if ($linenumbers) { my $ln = 0; while () { - printf '%5d: ', (++$ln) x 2; + printf qq{%5d:\t}, (++$ln) x 2; print $_; } } else { >Release-Note: >Audit-Trail: >Unformatted: