[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.219.207.136: ~ $
# $Id: pseudoxml.py 9043 2022-03-11 12:09:16Z milde $
# Author: David Goodger <goodger@python.org>
# 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, frontend


class Writer(writers.Writer):

    supported = ('pseudoxml', 'pprint', 'pformat')
    """Formats this writer supports."""

    settings_spec = (
        '"Docutils pseudo-XML" Writer Options',
        None,
        (('Pretty-print <#text> nodes.',
          ['--detailed'],
          {'action': 'store_true', 'validator': frontend.validate_boolean}),
         )
        )

    config_section = 'pseudoxml writer'
    config_section_dependencies = ('writers',)

    output = None
    """Final translated form of `document`."""

    def translate(self):
        self.output = self.document.pformat()

    def supports(self, format):
        """This writer supports all format-specific elements."""
        return True

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
html4css1 Folder 0755
html5_polyglot Folder 0755
latex2e Folder 0755
odf_odt Folder 0755
pep_html Folder 0755
s5_html Folder 0755
xetex Folder 0755
__init__.py File 4.83 KB 0644
_html_base.py File 69.23 KB 0644
docutils_xml.py File 6.6 KB 0644
manpage.py File 35.79 KB 0644
null.py File 568 B 0644
pseudoxml.py File 1.01 KB 0644