mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-23 13:51:11 +01:00
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
This commit is contained in:
parent
b82b77daf3
commit
9a09d70af1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=172752
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user