From: David G. <go...@us...> - 2002-08-27 00:39:07
|
Update of /cvsroot/docutils/docutils/docutils/parsers/rst/directives In directory usw-pr-cvs1:/tmp/cvs-serv19793/docutils/docutils/parsers/rst/directives Modified Files: __init__.py Log Message: Changed "attribute" to "option" for directives/extensions. Index: __init__.py =================================================================== RCS file: /cvsroot/docutils/docutils/docutils/parsers/rst/directives/__init__.py,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** __init__.py 17 Aug 2002 01:30:13 -0000 1.10 --- __init__.py 27 Aug 2002 00:39:03 -0000 1.11 *************** *** 12,16 **** The interface for directive functions is as follows:: ! def directivefn(match, type_name, data, state, state_machine, attributes) Where: --- 12,17 ---- The interface for directive functions is as follows:: ! def directivefn(match, type_name, data, state, state_machine, ! option_presets): Where: *************** *** 24,29 **** - ``state_machine`` is the state machine which controls the state which called the directive function. ! - ``attributes`` is a dictionary of extra attributes which may be added to the ! element the directive produces. Currently, only an "alt" attribute is passed by substitution definitions (value: the substitution name), which may be used by an embedded image directive. --- 25,30 ---- - ``state_machine`` is the state machine which controls the state which called the directive function. ! - ``option_presets`` is a dictionary of preset options which may be added to ! the element the directive produces. Currently, only an "alt" option is passed by substitution definitions (value: the substitution name), which may be used by an embedded image directive. |