W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Improve line number indicator formatting for redirect results in console mode.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:15 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1j1-000661-Vf@blinky.w3.org>
changeset:   250:77af7333b953
user:        ville
date:        Sat Oct 25 19:33:32 2008 +0000
files:       bin/checklink
description:
Improve line number indicator formatting for redirect results in console mode.


diff -r 5aa5456a76b4 -r 77af7333b953 bin/checklink
--- a/bin/checklink	Sat Oct 25 19:27:10 2008 +0000
+++ b/bin/checklink	Sat Oct 25 19:33:32 2008 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2008 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.120 2008-10-25 19:27:10 ville Exp $
+# $Id: checklink,v 4.121 2008-10-25 19:33:32 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -259,7 +259,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2008 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.120 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.121 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver,
                          (W3C::UserAgent::USE_ROBOT_UA
@@ -2091,7 +2091,7 @@
              # List of redirects
              $redirected ? join("\n-> ", @redirects_urls) . $redirmsg : $u,
              # List of lines
-             $lines_list ? "Line$s: $lines_list" : '',
+             $lines_list ? sprintf("\n%6s: %s", "Line$s", $lines_list) : '',
              # Response code chain
              join(' -> ', @http_codes),
              # HTTP message
Received on Thursday, 5 August 2010 14:47:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:44 UTC