addclose(trailer)
trailer = ""
if(length(out) > 0) {
- print out
+ print out " "
out=""
}
if(displaylines > 0) {
}
! /^\./ {
- out = $0 " "
+ out = $0
endline()
next
}
section=wtail()
linecmd("== " section " ==")
} else if(match(words[w],"^Xr$")) {
- add("'''" words[++w] "'''(" words[++w] ")" words[++w] " ")
+ add("'''" words[++w] "'''(" words[++w] ")" words[++w])
} else if(match(words[w],"^Nm$")) {
if(match(section,"SYNOPSIS"))
breakline()
addopen("-")
} else if(match(words[w],"^Ar$")) {
if(w==nwords)
- add("''file ...''" " ")
+ add("''file ...''")
else {
++w
gsub("<", "<", words[w])
- add("''" words[w] "''" " ")
+ add("''" words[w] "''")
}
} else if(match(words[w],"^Cm$")) {
++w
if (displaylines == 0) {
- add("'''" words[w] "'''" " ")
+ add("'''" words[w] "'''")
} else
add(words[w])
- l = wtail()
- add(l " ")
} else if(match(words[w],"^Op$")) {
addopen("<nowiki>[</nowiki>")
option=1
add(words[w])
} else if(match(words[w],"^Dv$")) {
linecmd()
- l = wtail()
- add(l " ")
} else if(match(words[w],"^Em|Ev$")) {
add(".IR")
} else if(match(words[w],"^Pq$")) {