From: Damien Miller Date: Tue, 27 Sep 2016 21:40:33 +0000 (+1000) Subject: fix mdoc2man.awk formatting for top-level lists X-Git-Tag: V_7_4_P1~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8663e51c80c6aa3d750c6d3bcff6ee05091922be;p=thirdparty%2Fopenssh-portable.git fix mdoc2man.awk formatting for top-level lists Reported by Glenn Golden Diagnosis and fix from Ingo Schwarze --- 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) { 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++