diff options
author | dtucker <dtucker> | 2004-07-02 08:43:09 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2004-07-02 08:43:09 +0000 |
commit | c4298925a74dad98b4c88b01a3367f231931989e (patch) | |
tree | a83d846041dc90ee06675b67aac8944c528d7ffd /mdoc2man.awk | |
parent | 1875aab3db4b7d1c3479fd205769576ce730407e (diff) | |
download | openssh-c4298925a74dad98b4c88b01a3367f231931989e.tar.gz |
- (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.awk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mdoc2man.awk b/mdoc2man.awk index fe678fd3..4e72cdc1 100644 --- a/mdoc2man.awk +++ b/mdoc2man.awk @@ -32,6 +32,7 @@ BEGIN { extopt=0 literal=0 prenl=0 + breakw=0 line="" } @@ -298,6 +299,13 @@ function add(str) { w=nwords } else if(match(words[w],"^El$")) { optlist=oldoptlist + } else if(match(words[w],"^Bk$")) { + if(match(words[w+1],"-words")) { + w++ + breakw=1 + } + } else if(match(words[w],"^Ek$")) { + breakw=0 } else if(match(words[w],"^It$")&&optlist) { if(optlist==1) add(".IP \\(bu") |