One more docutils question. I want to set up an editing environment for my wife to organize her poetry. How would I go about processing restructured text so that it always behaves as if the line-block:: directive is in effect? TIA --Dethe "I started with nothing, and I still have most of it." -- Steven Wright
Dethe Elza wrote:
One more docutils question. I want to set up an editing environment for my wife to organize her poetry. How would I go about processing restructured text so that it always behaves as if the line-block:: directive is in effect?
Interesting question. There is no direct support for such functionality at present. You could write a script, wrapper (Docutils Reader), and/or makefile that indents the input text and prefaces it with ".. line-block::". That's the simplest and most direct solution. The "include" directive could be extended to support the "line-block" context with an option like the existing "literal" option. (In addition to a new "line-block" context, "parsed-literal" should probably also be supported. Perhaps this functionality should be generalized into a "context" option instead of multiple individual options.) A new command-line option could be added to give context. But that feels too complex. -- David Goodger http://starship.python.net/~goodger For hire: http://starship.python.net/~goodger/cv Docutils: http://docutils.sourceforge.net/ (includes reStructuredText: http://docutils.sf.net/rst.html)
David Goodger wrote:
Dethe Elza wrote:
One more docutils question. I want to set up an editing environment for my wife to organize her poetry. How would I go about processing restructured text so that it always behaves as if the line-block:: directive is in effect?
Interesting question. There is no direct support for such functionality at present.
You could write a script, wrapper (Docutils Reader), and/or makefile that indents the input text and prefaces it with ".. line-block::". That's the simplest and most direct solution.
OK, that sounds like a winner. I knew I could do it that way, but wasn't sure how the state-machine works. I thought maybe I could initialize it in such a way that the line-block directive appeared to already be in effect. --Dethe "Trusting a scientist on questions of metaphysics is like paying someone else to worship God for you." -- Bill Welton
participants (2)
-
David Goodger -
Dethe Elza