From: <po...@or...> - 2003-02-12 04:57:16
|
How do I suppress the writing of a particular node in a custom writer? For example, I've got a reST document that has docinfo and contents, which I want to be included in the html output, but in my OpenOffice writer I do not want either of these to appear. I tried the simplest thing I could think of: def visit_docinfo(self, node): pass def depart_docinfo(self, node): pass That didn't work. Then I read all the documentation I could find, looked at the code for other writers, etc. I finally gave up. Can anyone give me a clue? I'm sure it's something simple I'm just not seeing. Perhaps something to do with transforms? Thanks. -- Patrick K. O'Brien Orbtech http://www.orbtech.com/web/pobrien ----------------------------------------------- "Your source for Python programming expertise." ----------------------------------------------- |