From 1391b104c8e096918cb1f12ed4befe4a3f9bdc11 Mon Sep 17 00:00:00 2001 From: goodger Date: Sun, 5 May 2002 15:34:56 +0000 Subject: renamed pseudoxml.py from pprint.py git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@84 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/pseudoxml.py | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 docutils/writers/pseudoxml.py (limited to 'docutils/writers/pseudoxml.py') diff --git a/docutils/writers/pseudoxml.py b/docutils/writers/pseudoxml.py new file mode 100644 index 000000000..a0cf5ea14 --- /dev/null +++ b/docutils/writers/pseudoxml.py @@ -0,0 +1,35 @@ +#! /usr/bin/env python + +""" +:Authors: David Goodger +:Contact: goodger@users.sourceforge.net +:Revision: $Revision$ +:Date: $Date$ +:Copyright: This module has been placed in the public domain. + +Simple internal document tree Writer, writes indented pseudo-XML. +""" + +__docformat__ = 'reStructuredText' + + +from docutils import writers + + +class Writer(writers.Writer): + + supported = ('pprint', 'pformat', 'pseudoxml') + """Formats this writer supports.""" + + output = None + """Final translated form of `document`.""" + + def translate(self): + self.output = self.document.pformat() + + def record(self): + self.recordfile(self.output, self.destination) + + def supports(self, format): + """This writer supports all format-specific elements.""" + return 1 -- cgit v1.2.1 From 01e6d2ca28acbc89879acefd8e0baa3e6ca8c457 Mon Sep 17 00:00:00 2001 From: goodger Date: Fri, 28 Jun 2002 04:13:57 +0000 Subject: - Added support for the ``docutils.io.IO`` class & subclasses. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@218 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/pseudoxml.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'docutils/writers/pseudoxml.py') diff --git a/docutils/writers/pseudoxml.py b/docutils/writers/pseudoxml.py index a0cf5ea14..c1ba29347 100644 --- a/docutils/writers/pseudoxml.py +++ b/docutils/writers/pseudoxml.py @@ -27,9 +27,6 @@ class Writer(writers.Writer): def translate(self): self.output = self.document.pformat() - def record(self): - self.recordfile(self.output, self.destination) - def supports(self, format): """This writer supports all format-specific elements.""" return 1 -- cgit v1.2.1 From efdd39867964b92520a58c6796658895e412c441 Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 9 Oct 2002 00:51:53 +0000 Subject: changed docstring field lists into comments git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@778 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/pseudoxml.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'docutils/writers/pseudoxml.py') diff --git a/docutils/writers/pseudoxml.py b/docutils/writers/pseudoxml.py index c1ba29347..02dde58f3 100644 --- a/docutils/writers/pseudoxml.py +++ b/docutils/writers/pseudoxml.py @@ -1,12 +1,10 @@ -#! /usr/bin/env python +# Authors: David Goodger +# Contact: goodger@users.sourceforge.net +# Revision: $Revision$ +# Date: $Date$ +# Copyright: This module has been placed in the public domain. """ -:Authors: David Goodger -:Contact: goodger@users.sourceforge.net -:Revision: $Revision$ -:Date: $Date$ -:Copyright: This module has been placed in the public domain. - Simple internal document tree Writer, writes indented pseudo-XML. """ -- cgit v1.2.1 From ffa71e84747057982955e2bad3de2f8d3ed97c69 Mon Sep 17 00:00:00 2001 From: goodger Date: Wed, 27 Aug 2003 20:50:43 +0000 Subject: Updated for configuration file reorganization. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1645 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- docutils/writers/pseudoxml.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docutils/writers/pseudoxml.py') diff --git a/docutils/writers/pseudoxml.py b/docutils/writers/pseudoxml.py index 02dde58f3..c0e18bffb 100644 --- a/docutils/writers/pseudoxml.py +++ b/docutils/writers/pseudoxml.py @@ -19,6 +19,9 @@ class Writer(writers.Writer): supported = ('pprint', 'pformat', 'pseudoxml') """Formats this writer supports.""" + config_section = 'pseudoxml writer' + config_section_dependencies = ('writers',) + output = None """Final translated form of `document`.""" -- cgit v1.2.1