HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/docutils/transforms/__pycache__/writer_aux.cpython-36.pyc
3

d��T1
�@sLdZdZddlmZmZmZddlmZGdd�de�ZGdd�de�Z	d	S)
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
ZreStructuredText�)�nodes�utils�	languages)�	Transformc@seZdZdZdZdd�ZdS)�Compounda
    Flatten all compound paragraphs.  For example, transform ::

        <compound>
            <paragraph>
            <literal_block>
            <paragraph>

    into ::

        <paragraph>
        <literal_block classes="continued">
        <paragraph classes="continued">
    i�cCsdx^|jjtj�D]L}d}x0|D](}|r8t|tj�sFd}q|djd�qW|j|dd��qWdS)NTF�classes�	continued)�document�traverser�compound�
isinstanceZ	Invisible�append�replace_self)�selfrZfirst_childZchild�r� /usr/lib/python3.6/writer_aux.py�apply(s
zCompound.applyN)�__name__�
__module__�__qualname__�__doc__�default_priorityrrrrrrsrc@seZdZdZdZdd�ZdS)�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�cCs�tj|jjj|jj�}xx|jjtj�D]f}|j	j
}|dj|�t|tj
�s&tj
|jf|j�|j�}tjd|j|�}|jd|�|j|�q&WdS)Nr�r)rZget_languager	ZsettingsZ
language_codeZreporterr
rZ
Admonition�	__class__rr
r�
admonitionZ	rawsourceZchildrenZ
attributes�titleZlabels�insertr)rZlanguageZnodeZ	node_namerrrrrrKs
zAdmonitions.applyN)rrrrrrrrrrr5srN)
rZ
__docformat__ZdocutilsrrrZdocutils.transformsrrrrrrr�<module>
s