summaryrefslogtreecommitdiff
path: root/mdoc2man.awk
diff options
context:
space:
mode:
Diffstat (limited to 'mdoc2man.awk')
-rw-r--r--mdoc2man.awk10
1 files changed, 9 insertions, 1 deletions
diff --git a/mdoc2man.awk b/mdoc2man.awk
index 9135af07e..4e72cdc1c 100644
--- a/mdoc2man.awk
+++ b/mdoc2man.awk
@@ -32,6 +32,7 @@ BEGIN {
32 extopt=0 32 extopt=0
33 literal=0 33 literal=0
34 prenl=0 34 prenl=0
35 breakw=0
35 line="" 36 line=""
36} 37}
37 38
@@ -298,6 +299,13 @@ function add(str) {
298 w=nwords 299 w=nwords
299 } else if(match(words[w],"^El$")) { 300 } else if(match(words[w],"^El$")) {
300 optlist=oldoptlist 301 optlist=oldoptlist
302 } else if(match(words[w],"^Bk$")) {
303 if(match(words[w+1],"-words")) {
304 w++
305 breakw=1
306 }
307 } else if(match(words[w],"^Ek$")) {
308 breakw=0
301 } else if(match(words[w],"^It$")&&optlist) { 309 } else if(match(words[w],"^It$")&&optlist) {
302 if(optlist==1) 310 if(optlist==1)
303 add(".IP \\(bu") 311 add(".IP \\(bu")
@@ -306,7 +314,7 @@ function add(str) {
306 else if(optlist==3) { 314 else if(optlist==3) {
307 add(".TP") 315 add(".TP")
308 prenl++ 316 prenl++
309 if(match(words[w+1],"^Pa|Ev$")) { 317 if(match(words[w+1],"^Pa$|^Ev$")) {
310 add(".B") 318 add(".B")
311 w++ 319 w++
312 } 320 }