summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/logging.go
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2018-01-27 18:50:36 +0000
committerrillig <rillig@pkgsrc.org>2018-01-27 18:50:36 +0000
commitfb3e29d5a14a81525850669ab7d8e82af100b0c4 (patch)
tree2472396e88b18df5c4c332223a52681da5982677 /pkgtools/pkglint/files/logging.go
parentc9d374f87393670920f19c2e695884d94ff7cca6 (diff)
downloadpkgsrc-fb3e29d5a14a81525850669ab7d8e82af100b0c4.tar.gz
pkgtools/pkglint: Update to 5.5.2
Changes since 5.5.1: * Fixed command line parsing for the --only option. * Improved alignment of variable values in Makefiles. * Code cleanup: better abstraction in the tests.
Diffstat (limited to 'pkgtools/pkglint/files/logging.go')
-rw-r--r--pkgtools/pkglint/files/logging.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/logging.go b/pkgtools/pkglint/files/logging.go
index 35efaf08b34..f98d3f870d9 100644
--- a/pkgtools/pkglint/files/logging.go
+++ b/pkgtools/pkglint/files/logging.go
@@ -120,7 +120,7 @@ func Explain(explanation ...string) {
if G.Testing {
for _, s := range explanation {
- if l := tabLength(s); l > 68 && contains(s, " ") {
+ if l := tabWidth(s); l > 68 && contains(s, " ") {
lastSpace := strings.LastIndexByte(s[:68], ' ')
print(fmt.Sprintf("Long explanation line: %s\nBreak after: %s\n", s, s[:lastSpace]))
}