is there a way to drop down a single line (and add a tab) in a man section 
defined in an extended getopts text?

e.g. the traditional way to format an EXAMPLES section seems to be

command -xyz 1 foo
        descriptive text

(with the example itself in bold)

but i can't figure out how to do that from a [+name?text] group

e.g. in

~ :) % /bin/cat ./foo.ksh
#!/usr/bin/env ksh 
while getopts $'[-][+EXAMPLES?\bcommand -xyz 1 foo\b\ndescriptive text]' opt
do
    :
done
~ :) % ksh --version
  version         sh (AT&T Research) 93u 2011-02-08
~ :( % ./foo.ksh --man   
EXAMPLES  command -xyz 1 foo descriptive text

SYNOPSIS
  ./foo.ksh [ options ]
~ :( % 

the newline and the tab disappear

(when i use --??nroff and generate a typeset manpage, the bold comes out 
correctly)
-- 
Aaron Davies
aaron.dav...@gmail.com
_______________________________________________
ast-users mailing list
ast-users@lists.research.att.com
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to