From 9a09d70af18a2064789c077fe5a9f845ecfaac20 Mon Sep 17 00:00:00 2001 From: Edwin Groothuis Date: Thu, 18 Oct 2007 12:53:11 +0000 Subject: [PATCH] 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(+) diff --git a/usr.bin/makewhatis/makewhatis.c b/usr.bin/makewhatis/makewhatis.c index ea089fec963c..c9404f6bae21 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;