2 # Author: David Goodger <goodger@python.org>
3 # Copyright: This module has been placed in the public domain.
6 Simple internal document tree Writer, writes indented pseudo-XML.
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',)
24 """Final translated form of `document`."""
27 self
.output
= self
.document
.pformat()
29 def supports(self
, format
):
30 """This writer supports all format-specific elements."""