From: Tim Kientzle Date: Mon, 13 Apr 2009 21:27:41 +0000 (-0400) Subject: Fix a bug in handling of bullet lists. X-Git-Tag: v2.8.0~717 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce60b976e090cabf615d5ca036bb3ef3c426cb0;p=thirdparty%2Flibarchive.git Fix a bug in handling of bullet lists. SVN-Revision: 980 --- diff --git a/doc/mdoc2wiki.awk b/doc/mdoc2wiki.awk index 7ffe8c630..8b476e033 100755 --- a/doc/mdoc2wiki.awk +++ b/doc/mdoc2wiki.awk @@ -357,9 +357,11 @@ function splitwords(l, dest, n, o, w) { } else if(match(words[w],"^Bl$")) { ++listdepth listnext[listdepth]="" - if(match(words[w+1],"-bullet")) + if(match(words[w+1],"-bullet")) { optlist[listdepth]=1 - else if(match(words[w+1],"-enum")) { + addopen("" + } else if(match(words[w+1],"-enum")) { optlist[listdepth]=2 enum=0 addopen("
    ") @@ -372,10 +374,6 @@ function splitwords(l, dest, n, o, w) { optlist[listdepth]=4 addopen("" - } else if(match(words[w+1],"-bullet")) { - optlist[listdepth]=1 - addopen("" } w=nwords } else if(match(words[w],"^El$")) {