summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorville <ville@localhost>2009-09-23 21:27:32 +0000
committerville <ville@localhost>2009-09-23 21:27:32 +0000
commit2b602ab914fe772aab49724cf46c8f922e684501 (patch)
tree3aeac6666576dcd4098196a42961522e52806958
parentb166d2b91ff9347458241d60b7bb1a5ff823351c (diff)
downloadmarkup-validator-2b602ab914fe772aab49724cf46c8f922e684501.zip
markup-validator-2b602ab914fe772aab49724cf46c8f922e684501.tar.gz
markup-validator-2b602ab914fe772aab49724cf46c8f922e684501.tar.bz2
Avoid adding an ellipsis when a line (for a message without a column number) was not truncated.
-rwxr-xr-xhttpd/cgi-bin/check6
1 files changed, 3 insertions, 3 deletions
diff --git a/httpd/cgi-bin/check b/httpd/cgi-bin/check
index edfec2c..17dc953 100755
--- a/httpd/cgi-bin/check
+++ b/httpd/cgi-bin/check
@@ -14,7 +14,7 @@
# This source code is available under the license at:
# http://www.w3.org/Consortium/Legal/copyright-software
#
-# $Id: check,v 1.703 2009-09-23 21:13:04 ville Exp $
+# $Id: check,v 1.704 2009-09-23 21:27:32 ville Exp $
#
# Disable buffering on STDOUT!
$| = 1;
@@ -208,7 +208,7 @@ Directory not readable (permission denied): @_r
#
# Strings
- $VERSION = q$Revision: 1.703 $;
+ $VERSION = q$Revision: 1.704 $;
$VERSION =~ s/Revision: ([\d\.]+) /$1/;
#
@@ -2087,7 +2087,7 @@ sub report_errors ($) {
$col = length($File->{Content}->[$err->{line}-1]);
$col = 80 if ($col > 80);
($line, $col) = &truncate_line($File->{Content}->[$err->{line}-1], $col);
- $line = &ent($line) . "…";
+ $line = &ent($line);
$col = 0;
}
}