HEX
Server: Apache
System: Linux pdx1-shared-a1-29 6.18.39-grsec-noble+ #4 SMP Thu Jul 23 07:53:29 UTC 2026 x86_64
User: dh_bj99yp (22285841)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/docutils/transforms/__pycache__/writer_aux.cpython-312.pyc
�

�dd���\�dZdZddlZddlmZmZddlmZGd�de�ZGd�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�.��eZdZdZdZd�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�^��tjdtd��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.pyrzCompound.__init__-s+����
�
�H�(�Q�	8�	����9�-�c��|jjtj�D]S}d}|D]6}|rt	|tj
�r� d}�#|dj
d��8|j|dd��Uy)NTF�classes�	continued)r�findallr�compound�
isinstance�	Invisible�append�replace_self)rr�first_child�childs    r�applyzCompound.apply3su���
�
�-�-�e�n�n�=�		/�H��K�!�
9���%�e�U�_�_�=�&+���)�$�+�+�K�8�
9�
�!�!�(�1�+�.�		/r)N)�__name__�
__module__�__qualname__�__doc__�default_priorityrr"�
__classcell__)rs@rrrs����$��.�
/rrc��eZdZdZdZd�Zy)�AdmonitionsaZ
    Transform specific admonitions, like this:

        <note>
            <paragraph>
                 Note contents ...

    into generic admonitions, like this::

        <admonition classes="note">
            <title>
                Note
            <paragraph>
                Note contents ...

    The admonition title is localized.
    i�c�t�tj|jjj|jj
�}|jj
tj�D]�}|jj}|dj|�t|tj�r�Htj|jg|j��i|j ��}tj"d|j$|�}|j'd|�|j)|���y)Nr�r)r�get_languager�settings�
language_code�reporterrr�
Admonitionrr#rr�
admonition�	rawsource�children�
attributes�title�labels�insertr)r�language�node�	node_namer2r6s      rr"zAdmonitions.applyVs����)�)�$�-�-�*@�*@�*N�*N�*.�-�-�*@�*@�B���M�M�)�)�%�*:�*:�;�
	.�D����/�/�I���O�"�"�9�-��d�E�$4�$4�5�"�-�-�d�n�n�A�t�}�}�A�04���A�
����B����	�(B�C���!�!�!�U�+��!�!�*�-�
	.rN)r#r$r%r&r'r"�rrr*r*@s���$��
.rr*)
r&�
__docformat__r�docutilsrr�docutils.transformsrrr*r<rr�<module>r@s3��
�#�
��%�)�&/�y�&/�R#.�)�#.r