summaryrefslogtreecommitdiff
path: root/mdoc2man.awk
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
committerColin Watson <cjwatson@debian.org>2005-01-04 13:07:27 +0000
commitfd0f611b70a83d80fe8793af785542ee5541b7cd (patch)
treebededd22bb7eeec52e20083237ab7e4113445a16 /mdoc2man.awk
parentc44fe9a5b9d3db96a7249b04d915f17e4a3a3b04 (diff)
parentebd2ce335af5861020c79fddb1ae35c03bf036cf (diff)
Merge 3.9p1 to the trunk.
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 }