summaryrefslogtreecommitdiff
path: root/mdoc2man.awk
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2004-07-02 18:43:09 +1000
committerDarren Tucker <dtucker@zip.com.au>2004-07-02 18:43:09 +1000
commitd062da53c7326fef580b30548faca156b8e336ad (patch)
treed43367c0a8952a273cb8181d7e539b50c5094173 /mdoc2man.awk
parenta5757f0f28c95c6eee8ce570e58a1321d74fe4ad (diff)
- (dtucker) [mdoc2man.awk] Teach it to ignore .Bk -words, reported by
strube at physik3.gwdg.de a long time ago.
Diffstat (limited to 'mdoc2man.awk')
-rw-r--r--mdoc2man.awk8
1 files changed, 8 insertions, 0 deletions
diff --git a/mdoc2man.awk b/mdoc2man.awk
index fe678fd37..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")