From: David Goodger <goodger@py...> - 2007-03-08 15:18:26
On 3/6/07, fwiemann@... <fwiemann@...> wrote:
> @@ -1297,6 +1303,11 @@
> - _`misc.settings`: Set any(?) Docutils runtime setting from within
> a document? Needs much thought and discussion.
> + Security concerns need to be taken into account (it shouldn't be
> + possible to enable ``file_insertion_enabled`` from within a
> + document), and settings that only would have taken effect before
> + the directive (like ``tab-width``) shouldn't be accessible either.
I agree about security-related settings. These warrant special processing.
There's a good use case for setting tab-width though; it could be
changed before an "include" directive. Arguably, it would be better
for the include directive to grow a tab-witdh option instead, but
lacking that, resetting tab-width from within the document is valid.
David Goodger <http://python.net/~goodger>