X7ROOT File Manager
Current Path:
/opt/imunify360/venv/lib/python3.11/site-packages/docutils/writers
opt
/
imunify360
/
venv
/
lib
/
python3.11
/
site-packages
/
docutils
/
writers
/
📁
..
📄
__init__.py
(4.83 KB)
📁
__pycache__
📄
_html_base.py
(69.23 KB)
📄
docutils_xml.py
(6.6 KB)
📁
html4css1
📁
html5_polyglot
📁
latex2e
📄
manpage.py
(35.79 KB)
📄
null.py
(568 B)
📁
odf_odt
📁
pep_html
📄
pseudoxml.py
(1.01 KB)
📁
s5_html
📁
xetex
Editing: pseudoxml.py
# $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
Upload File
Create Folder