From: Tim Kientzle Date: Sun, 13 Mar 2011 07:43:36 +0000 (-0400) Subject: Fix the handling of multiple Fl options: X-Git-Tag: v3.0.0a~661 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d54cc6197f5ff32bfe71472d17732f0bbbf6f734;p=thirdparty%2Flibarchive.git Fix the handling of multiple Fl options: .Fl Fl command used to cause -Fl command but now it generates --command. In the process, bolding of certain command options is lost; the logic here needs to be significantly reworked. SVN-Revision: 3010 --- diff --git a/doc/mdoc2wiki.awk b/doc/mdoc2wiki.awk index 146d96198..fc59a790e 100755 --- a/doc/mdoc2wiki.awk +++ b/doc/mdoc2wiki.awk @@ -255,10 +255,7 @@ function splitwords(l, dest, n, o, w) { } else if(match(words[w],"^Nd$")) { add("- " wtail()) } else if(match(words[w],"^Fl$")) { - if (displaylines == 0) - add("*-" words[++w] "*") - else - add("-" words[++w]) + addopen("-") } else if(match(words[w],"^Ar$")) { if(w==nwords) add("_file ..._")