]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix a bug in handling of bullet lists.
authorTim Kientzle <kientzle@gmail.com>
Mon, 13 Apr 2009 21:27:41 +0000 (17:27 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 13 Apr 2009 21:27:41 +0000 (17:27 -0400)
SVN-Revision: 980

doc/mdoc2wiki.awk

index 7ffe8c630d5cbb838e50589625db3c416253f32c..8b476e033046e2b00dd17ba718b7fc4bfbc512c8 100755 (executable)
@@ -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("<ul>")
+       listclose[listdepth]="</ul>"
+      } else if(match(words[w+1],"-enum")) {
        optlist[listdepth]=2
        enum=0
        addopen("<ol>")
@@ -372,10 +374,6 @@ function splitwords(l, dest, n, o, w) {
        optlist[listdepth]=4
        addopen("<ul>")
        listclose[listdepth]="</ul>"
-      } else if(match(words[w+1],"-bullet")) {
-       optlist[listdepth]=1
-       addopen("<ul>")
-       listclose[listdepth]="</ul>"
       }
       w=nwords
     } else if(match(words[w],"^El$")) {