From: David G. <go...@py...> - 2011-02-02 16:11:31
|
On Wed, Feb 2, 2011 at 10:45, Paul Tremblay <pau...@gm...> wrote: > Yes, the question is a bit meaningless. Let me re-phrase it: I want to > capture the output from XML, and am willing to pass on arguments: > > import docutils.??? > return_string = docutils.??.method('trim-footnote-reference-space' = True) > > I've had a look at the convenience methods, but I don't believe the ones > that return strings or files allow you to pass arguments to it. I understand what you want. The existing convenience functions don't do it, so you'll have to roll your own, or script existing tools. Look at what the convenience functions do, and adapt to your needs. It's all there, just combine the two functions that do parts of what you want. Use the source, Luke! > Using commands will only work on unix systems, I believe? You would have to > have rst2xml.py executable in in the PATH, and I don't know if Windows > allows this. It can be done. Details are up to you. -- David Goodger > On 2/2/11 10:27 AM, David Goodger wrote: >> >> I'm tempted to answer "mu" (un-ask the question, it's meaningless). >> Perhaps you should create a new Writer instead (a subclass of the XML >> writer)? It would have access to the text output. >> >> > > |