summaryrefslogtreecommitdiff
path: root/mdoc2man.awk
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2016-09-28 07:40:33 +1000
committerDamien Miller <djm@mindrot.org>2016-09-28 07:40:33 +1000
commit8663e51c80c6aa3d750c6d3bcff6ee05091922be (patch)
tree4b5a2e8f591438aef78896722204b4945bc249a0 /mdoc2man.awk
parentb97739dc21570209ed9d4e7beee0c669ed23b097 (diff)
fix mdoc2man.awk formatting for top-level lists
Reported by Glenn Golden Diagnosis and fix from Ingo Schwarze
Diffstat (limited to 'mdoc2man.awk')
-rw-r--r--mdoc2man.awk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mdoc2man.awk b/mdoc2man.awk
index 80e8d5ffa..3e8725452 100644
--- a/mdoc2man.awk
+++ b/mdoc2man.awk
@@ -321,6 +321,8 @@ function add(str) {
321 w=nwords 321 w=nwords
322 } else if(match(words[w],"^El$")) { 322 } else if(match(words[w],"^El$")) {
323 optlist=oldoptlist 323 optlist=oldoptlist
324 if(!optlist)
325 add(".PP")
324 } else if(match(words[w],"^Bk$")) { 326 } else if(match(words[w],"^Bk$")) {
325 if(match(words[w+1],"-words")) { 327 if(match(words[w+1],"-words")) {
326 w++ 328 w++