From d062da53c7326fef580b30548faca156b8e336ad Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 2 Jul 2004 18:43:09 +1000 Subject: [PATCH] - (dtucker) [mdoc2man.awk] Teach it to ignore .Bk -words, reported by strube at physik3.gwdg.de a long time ago. --- ChangeLog | 6 +++++- mdoc2man.awk | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3075006b1..fdec5781d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +20040702 + - (dtucker) [mdoc2man.awk] Teach it to ignore .Bk -words, reported by + strube at physik3.gwdg.de a long time ago. + 20040701 - (dtucker) [session.c] Call display_loginmsg again after do_pam_session. Ensures messages from PAM modules are displayed when privsep=no. @@ -1477,4 +1481,4 @@ - (djm) Trim deprecated options from INSTALL. Mention UsePAM - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu -$Id: ChangeLog,v 1.3467 2004/07/02 03:41:15 tim Exp $ +$Id: ChangeLog,v 1.3468 2004/07/02 08:43:09 dtucker Exp $ diff --git a/mdoc2man.awk b/mdoc2man.awk index fe678fd37..4e72cdc1c 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")