diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2007-10-18 12:53:11 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2007-10-18 12:53:11 +0000 |
commit | 9a09d70af18a2064789c077fe5a9f845ecfaac20 (patch) | |
tree | 25ce79b09171e8125d10bb6e6f746a8e257b4fc6 /usr.bin/makewhatis | |
parent | b82b77daf335cc1ff296eece0c34d3a528cb6680 (diff) | |
download | src-9a09d70af18a2064789c077fe5a9f845ecfaac20.tar.gz src-9a09d70af18a2064789c077fe5a9f845ecfaac20.zip |
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
Notes
Notes:
svn path=/head/; revision=172752
Diffstat (limited to 'usr.bin/makewhatis')
-rw-r--r-- | usr.bin/makewhatis/makewhatis.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |