summaryrefslogtreecommitdiff
path: root/doc/mdoc2wiki.awk
diff options
context:
space:
mode:
Diffstat (limited to 'doc/mdoc2wiki.awk')
-rwxr-xr-xdoc/mdoc2wiki.awk10
1 files changed, 4 insertions, 6 deletions
diff --git a/doc/mdoc2wiki.awk b/doc/mdoc2wiki.awk
index 7ffe8c63..8b476e03 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("<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$")) {