diff options
author | wiz <wiz> | 2014-06-23 18:10:21 +0000 |
---|---|---|
committer | wiz <wiz> | 2014-06-23 18:10:21 +0000 |
commit | 3574a448c6232312d6a3d022042fea71dc49c1e4 (patch) | |
tree | c8f7f933c510242266c1d2445cf29787f020610d | |
parent | e576c34cfad74bcbb20db0e1a69074c2458a1d56 (diff) | |
download | pkgsrc-3574a448c6232312d6a3d022042fea71dc49c1e4.tar.gz |
Fix a bug in -F. Bump version.
-rw-r--r-- | textproc/mdoclint/Makefile | 5 | ||||
-rwxr-xr-x | textproc/mdoclint/files/mdoclint | 11 |
2 files changed, 7 insertions, 9 deletions
diff --git a/textproc/mdoclint/Makefile b/textproc/mdoclint/Makefile index 02dd12ea70a..f2f38b3286a 100644 --- a/textproc/mdoclint/Makefile +++ b/textproc/mdoclint/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.38 2014/05/29 23:37:34 wiz Exp $ +# $NetBSD: Makefile,v 1.39 2014/06/23 18:10:21 wiz Exp $ -DISTNAME= mdoclint-1.29 -PKGREVISION= 1 +DISTNAME= mdoclint-1.30 CATEGORIES= textproc MASTER_SITES= # none DISTFILES= # none diff --git a/textproc/mdoclint/files/mdoclint b/textproc/mdoclint/files/mdoclint index 509b932281b..e31f222df6c 100755 --- a/textproc/mdoclint/files/mdoclint +++ b/textproc/mdoclint/files/mdoclint @@ -1,7 +1,7 @@ #!@PERL5@ # # $OpenBSD: mdoclint,v 1.42 2014/03/18 22:36:30 miod Exp $ -# $NetBSD: mdoclint,v 1.48 2014/03/31 08:40:47 wiz Exp $ +# $NetBSD: mdoclint,v 1.49 2014/06/23 18:10:21 wiz Exp $ # # Copyright (c) 2001-2013 Thomas Klausner # All rights reserved. @@ -407,12 +407,11 @@ sub set_section_header sub process_and_save_line { - my $s; - ($s, $_) = @_; - my $result = $s->process_line($_); + my ($s, $input) = @_; + my $result = $s->process_line($input); # note that process_line chomps \n, then re-adds it, # so we detect a change on last lines without a \n. - if ($result ne $_) { + if ($result ne "$input") { $s->{changes} = 1; } push(@{$s->{all}}, $result); @@ -464,7 +463,7 @@ sub process_line if ($s->{mandoc_p}) { if (/^\.Sh\s+(.*)$/o) { - my $line = $_; + my $line = $_; $s->set_section_header($1); return "$line\n"; } |