Use ``<code>`` tag for inline "code", do not drop nested inline nodes (syntax highlig...
[docutils.git] / docutils / writers / pseudoxml.py
blob93975b2b0204a5c448a9fada12aba2b50ffad112
1 # $Id$
2 # Author: David Goodger <goodger@python.org>
3 # Copyright: This module has been placed in the public domain.
5 """
6 Simple internal document tree Writer, writes indented pseudo-XML.
7 """
9 __docformat__ = 'reStructuredText'
12 from docutils import writers
15 class Writer(writers.Writer):
17 supported = ('pprint', 'pformat', 'pseudoxml')
18 """Formats this writer supports."""
20 config_section = 'pseudoxml writer'
21 config_section_dependencies = ('writers',)
23 output = None
24 """Final translated form of `document`."""
26 def translate(self):
27 self.output = self.document.pformat()
29 def supports(self, format):
30 """This writer supports all format-specific elements."""
31 return True