fix mdoc2man.awk formatting for top-level lists

Reported by Glenn Golden
Diagnosis and fix from Ingo Schwarze
This commit is contained in:
Damien Miller 2016-09-28 07:40:33 +10:00
parent b97739dc21
commit 8663e51c80
1 changed files with 2 additions and 0 deletions

View File

@ -321,6 +321,8 @@ function add(str) {
w=nwords
} else if(match(words[w],"^El$")) {
optlist=oldoptlist
if(!optlist)
add(".PP")
} else if(match(words[w],"^Bk$")) {
if(match(words[w+1],"-words")) {
w++