| Server IP : 104.21.21.239 / Your IP : 216.73.216.25 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/docutils/writers/__pycache__/ |
Upload File : |
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� Zstore_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! r r r
� translateC s zWriter.translate)
r r
r Z supportedr Zvalidate_booleanZ
settings_specZsettings_defaultsZconfig_sectionZconfig_section_dependenciesr# r r$ r r r r
r s>