| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/docutils/writers/__pycache__/ |
Upload File : |
a
OԼa� � @ s� d Z dZddlZddlZddlZddlmZmZmZ ej dkrLddl
mZ nddlmZ ej dkrfeZ
G dd� dej�ZG d d
� d
ej�ZG dd� dej�ZG d
d� dejjj�ZdS )zv
Simple document tree Writer, writes Docutils XML according to
http://docutils.sourceforge.net/docs/ref/docutils.dtd.
ZreStructuredText� N)�frontend�writers�nodes�� r )�StringIOc @ s e Zd ZdS )�RawXmlErrorN)�__name__�
__module__�__qualname__� r r �A/usr/lib/python3.9/site-packages/docutils/writers/docutils_xml.pyr � r c @ s� e Zd ZdZddddgdejd�fdd gdejd�fd
dgdd
dejd�fddgdd
dejd�fffZddiZdZdZ dZ
dd� Zdd� ZdS )�Writer)�xmlz"Docutils XML" Writer OptionsNz1Generate XML with newlines before and after tags.z
--newlines�
store_true)�action� validatorz'Generate XML with indents and newlines.z --indentsz,Omit the XML declaration. Use with caution.z--no-xml-declaration�xml_declaration� �store_false)�dest�defaultr r zOmit the DOCTYPE declaration.z--no-doctype�doctype_declarationZoutput_encoding_error_handler�xmlcharrefreplacezdocutils_xml writer)r c C s t j�| � t| _d S �N)r r �__init__�
XMLTranslator�translator_class)�selfr r r
r ? s zWriter.__init__c C s0 | � | j� | _}| j�|� d�|j�| _d S )N� )r �document�visitorZ walkabout�join�output)r r"