bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: .At missing some arguments?


From: Werner LEMBERG
Subject: Re: .At missing some arguments?
Date: Thu, 22 Feb 2001 09:24:02 +0100 (CET)

> The ash.1 man page has formating problems in the man page.  Below is
> the man source and the resulting output.  The 'version' number is
> missing in the first sentence.  Sorry I don't speak groff to provide
> a patch.
>
> I'm looking at groff 1.16 here, though I don't think it's changed in
> 1.16.1.

But in 1.17 it will change!  You may try the files tmac/*.new in the
current snapshot which provide a completely revised mdoc
implementation.

Attached is the necessary sed script to strip off comments, spaces,
etc., e.g.:

  sed < tmac.doc.new > tmac.doc

It's already very stable; currently I'm polishing the reference
manual.


    Werner
# strip comments, spaces, etc. after a line containing `%beginstrip%
/%beginstrip%/,$ {
  s/^\.[         ]*/./
  s/^\.\\".*/./
  s/\\".*/\\"/
  s/\([^/]\)doc-/\1/g
}
/^\.$/d

reply via email to

[Prev in Thread] Current Thread [Next in Thread]