diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-08-05 07:24:20 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2013-08-05 07:24:20 +0000 |
commit | 1698fd86eed05bf9f1060f7f71a776d2bdd2d4ce (patch) | |
tree | f06cb398fd9f378161b50a79a792d04351a3024c /regress | |
parent | 928792f83c39ac875b11ff92001132b9c3dfe83b (diff) |
stop -F from removing Sh lines; -r1.39
from wiz@netbsd
Diffstat (limited to 'regress')
-rw-r--r-- | regress/usr.bin/mdoclint/mdoclint | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/regress/usr.bin/mdoclint/mdoclint b/regress/usr.bin/mdoclint/mdoclint index cb70b094753..c6457c0975d 100644 --- a/regress/usr.bin/mdoclint/mdoclint +++ b/regress/usr.bin/mdoclint/mdoclint @@ -1,7 +1,7 @@ #!/usr/bin/perl # -# $OpenBSD: mdoclint,v 1.35 2013/08/05 07:16:19 jmc Exp $ -# $NetBSD: mdoclint,v 1.35 2013/07/30 18:46:29 wiz Exp $ +# $OpenBSD: mdoclint,v 1.36 2013/08/05 07:24:19 jmc Exp $ +# $NetBSD: mdoclint,v 1.39 2013/08/02 13:16:54 wiz Exp $ # # Copyright (c) 2001-2013 Thomas Klausner # All rights reserved. @@ -461,13 +461,15 @@ sub process_line if ($s->{mandoc_p}) { if (/^\.Sh\s+(.*)$/o) { + my $line = $_; $s->set_section_header($1); - return "$_\n"; + return "$line\n"; } } else { if (/^\.SH\s+(.*)$/o) { + my $line = $_; $s->set_section_header($1); - return "$_\n"; + return "$line\n"; } } |