Bug 116479

Summary: cvsweb+enscript formatting bugfix
Product: Documentation Reporter: Matthew Mondor <mmondor>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Matthew Mondor 2007-09-20 02:40:06 UTC
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.

Fix: 

@@ -3815,7 +3815,7 @@
   if ($linenumbers) {
     my $ln = 0;
     while (<ENSCRIPT_OUT>) {
-      printf '<a id="l%d" class="src">%5d: </a>', (++$ln) x 2;
+      printf qq{<a id="l%d" class="src">%5d:\t}, (++$ln) x 2;
       print $_;
     }
   } else {
Comment 1 Matthew Mondor 2007-09-20 03:41:20 UTC
There was an error in the previous diff;  the correct one:

@@ -3815,7 +3815,7 @@
   if ($linenumbers) {
     my $ln = 0;
     while (<ENSCRIPT_OUT>) {
-      printf '<a id="l%d" class="src">%5d: </a>', (++$ln) x 2;
+      printf qq{<a id="l%d" class="src">%5d:</a>\t}, (++$ln) x 2;
       print $_;
     }
   } else {

-- 
Matthew Mondor
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2009-11-05 19:31:37 UTC
State Changed
From-To: open->feedback

Can you point me at an example URL which shows this behaviour?
Comment 3 Johann Kois freebsd_committer freebsd_triage 2010-08-06 10:31:05 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No feedback for a long time.  Set a time-out of 2 weeks.  After that I
will close this PR.

- -- 
 Johann Kois
 jkois(at)FreeBSD.org
 FreeBSD Documentation Project
 FreeBSD German Documentation Project - https://doc.bsdgroup.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxb1lkACgkQ/rDr791hwtiTPQCfaWrR3mKrVXB2XZb9Xbzkv0ki
GQUAoLlqCOgyTmlyZxAfL23CIcXVMn3v
=E04L
-----END PGP SIGNATURE-----
Comment 4 Remko Lodder freebsd_committer freebsd_triage 2011-12-26 20:56:38 UTC
State Changed
From-To: feedback->closed

I see that jkois was setting this for 14days timeout in 2010, it's 
almost 2012, so the timeout had occured :-). Thanks!