diff options
author | 2013-08-05 07:24:19 +0000 | |
---|---|---|
committer | 2013-08-05 07:24:19 +0000 | |
commit | a42608b0840aba4133895cd2919eccd588374ade (patch) | |
tree | acd06e1280a9e6ed8368a29adbe8be0183f417f2 | |
parent | ino_t is unsigned (diff) | |
download | wireguard-openbsd-a42608b0840aba4133895cd2919eccd588374ade.tar.xz wireguard-openbsd-a42608b0840aba4133895cd2919eccd588374ade.zip |
stop -F from removing Sh lines; -r1.39
from wiz@netbsd
-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"; } } |