On Wed, 16 Jun 2004, cygwin wrote:

> > Just change the above sed script.  Your problem seems due to the
> > spaces left before the .SH tags.  Try the following patch.sed:
> >
> > s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./
> > s/\.YODLTAGSTART\./\r\.YODLTAGSTART\./g
> > s/ *\.YODLTAGSTART\. roffcmd //
> > s/\.YYODLTAGSTART\. roffcmd //
> > s/\.YODLTAGEND\.//
> > s/\n\.YYODLTAGSTART\..*//
> >
> > You may also need to add a space before the \.YODLTAGEND\. pattern,
> > but I think that's not necessary.
> > HTH,
> >       Igor
>
> Cheers for the response.. Unfortunately, it didn't help, still had the
> .SH's afterwards :-/

Whoops, sorry for muddying the waters.  I should have tested the script
before sending it (the original had more than a couple of bugs).  Here's
one that actually works:

s/^\.YODLTAGSTART\./\.YYODLTAGSTART\./
s/\.YODLTAGSTART\./\n\.YODLTAGSTART\./g
s/\.YODLTAGSTART\. roffcmd //
s/\.YYODLTAGSTART\. roffcmd //
s/\.YODLTAGEND\.//
s/^\.YYODLTAGSTART\..*//

Enjoy,
        Igor
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to