]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
fix mdoc2man.awk formatting for top-level lists
authorDamien Miller <djm@mindrot.org>
Tue, 27 Sep 2016 21:40:33 +0000 (07:40 +1000)
committerDamien Miller <djm@mindrot.org>
Tue, 27 Sep 2016 21:40:33 +0000 (07:40 +1000)
Reported by Glenn Golden
Diagnosis and fix from Ingo Schwarze

mdoc2man.awk

index 80e8d5ffa1fc05983fb384c7c0666330b11bc537..3e8725452ed3236357ed3528315eedadb3e16878 100644 (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++