From: David G. <go...@us...> - 2003-07-09 18:00:52
|
Update of /cvsroot/docutils/docutils/spec/howto In directory sc8-pr-cvs1:/tmp/cvs-serv358/spec/howto Modified Files: rst-directives.txt Log Message: updated Index: rst-directives.txt =================================================================== RCS file: /cvsroot/docutils/docutils/spec/howto/rst-directives.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- rst-directives.txt 24 Oct 2002 23:32:09 -0000 1.3 +++ rst-directives.txt 9 Jul 2003 18:00:50 -0000 1.4 @@ -132,8 +132,11 @@ argument (raises ``ValueError`` if found), returns ``None`` for valid flag options. - - ``unchanged``: Returns the argument, unchanged. Raises - ``ValueError`` if no argument is found. + - ``unchanged_required``: Returns the text argument, unchanged. + Raises ``ValueError`` if no argument is found. + + - ``unchanged``: Returns the text argument, unchanged. Returns an + empty string ("") if no argument is found. - ``path``: Returns the path argument unwrapped (with newlines removed). Raises ``ValueError`` if no argument is found or if the @@ -141,6 +144,10 @@ - ``nonnegative_int``: Checks for a nonnegative integer argument, and raises ``ValueError`` if not. + + - ``class_option``: Converts the argument into an ID-compatible + string and returns it. Raises ``ValueError`` if no argument is + found. A further utility function, ``choice``, is supplied to enable options whose argument must be a member of a finite set of possible |