From 1af6ff1600411e207caf1f30b413f88e195dcc40 Mon Sep 17 00:00:00 2001 From: edwin Date: Thu, 18 Oct 2007 12:53:11 +0000 Subject: 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 --- usr.bin/makewhatis/makewhatis.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'usr.bin/makewhatis') 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; -- cgit v1.1