summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2007-10-18 12:53:11 +0000
committeredwin <edwin@FreeBSD.org>2007-10-18 12:53:11 +0000
commit1af6ff1600411e207caf1f30b413f88e195dcc40 (patch)
tree25ce79b09171e8125d10bb6e6f746a8e257b4fc6
parent425e8dca711713891c36f00b1b2104448c2f6b00 (diff)
downloadFreeBSD-src-1af6ff1600411e207caf1f30b413f88e195dcc40.zip
FreeBSD-src-1af6ff1600411e207caf1f30b413f88e195dcc40.tar.gz
Teach makewhatis.c to treat .SS with the same severity as .SH.
At least one port (net-mgmt/net-snmp) creates man-pages which are in the format: .SH NAME The Net-SNMP agent \- The snmp agent responds to SNMP queries from management stations. .PP .SS "Modules" At this moment, makewhatis determines the end of the .SH NAME section as where it finds .SH again, but there is none here, is it "terminated" by the .SS. PR: bin/116706 Submitted by: edwin@ Approved by: re (Ken Smith), grog (mentor) MFC after: 1 week
-rw-r--r--usr.bin/makewhatis/makewhatis.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c
index ea089fe..c9404f6 100644
--- a/usr.bin/makewhatis/makewhatis.c
+++ b/usr.bin/makewhatis/makewhatis.c
@@ -726,6 +726,8 @@ process_page(struct page_info *page, char *section_dir)
case STATE_MANSTYLE:
if (strncmp(line, ".SH", 3) == 0)
break;
+ if (strncmp(line, ".SS", 3) == 0)
+ break;
trim_rhs(line);
if (strcmp(line, ".") == 0)
continue;
OpenPOWER on IntegriCloud