hi,

I'm trying to come to terms with the details of `getopts'. I managed to get a correctly formatted manpage via

myscript --man

however, using

myscript --nroff 2>&1 |nroff -man

does not generate the same formatting. rather, line breaks (or, rather, paragraph breaks) between option descriptions are missing, i.e. the second option description starts somewhere in the middle of a line immediately after the end of the previous option description (I'm using groff version 1.21.).

I looked at the `--nroff' output generated `getopts', but do not remember enough troff to modfiy the `.OP' macro quickly.

question: how can I enforce correctly formatted nroff -man output (or troff, for that matter, in order to generate pdf-versions of the manpage)?

thanks,

joerg

--
Using Opera's revolutionary email client: http://www.opera.com/mail/
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to