File: //lib/python3/dist-packages/docutils/transforms/__pycache__/writer_aux.cpython-312.pyc
�
�dd� � �\ � d Z dZddlZddlmZmZ ddlmZ G d� de� Z G d� d e� Z y)
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� c �^ �� t j dt d�� t �| � ||� y )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__- s+ �� ��
�
� H�(�Q� 8� ����9�-� c � � | j j t j � D ]S }d}|D ]6 }|rt |t j
� r� d}�#|d j
d� �8 |j |d d � �U y )NTF�classes� continued)r �findallr �compound�
isinstance� Invisible�append�replace_self)r r �first_child�childs r �applyzCompound.apply3 su � ��
�
�-�-�e�n�n�=� /�H��K�!�
9���%�e�U�_�_�=�&+���)�$�+�+�K�8�
9�
�!�!�(�1�+�.� /r )N)�__name__�
__module__�__qualname__�__doc__�default_priorityr r"