0~끰9B 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 ::
into ::
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)warningswarnDeprecationWarningsuper__init__)selfdocument startnode __class__s ~/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib/python3.11/site-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 )NTFclasses continued)r findallr compound
isinstance Invisibleappendreplace_self)r r first_childchilds r applyzCompound.apply3 s
--en== / /HK!
9
9 9%eU_== ,&+)$++K8888!!(111+.... / /r )N)__name__
__module____qualname____doc__default_priorityr r"
__classcell__)r s @r r r s^ $ . . . . . .
/
/
/
/
/
/
/r r c e Zd ZdZdZd ZdS )AdmonitionsaZ
Transform specific admonitions, like this:
Note contents ...
into generic admonitions, like this::
Note
Note contents ...
The admonition title is localized.
i c t j | j j j | j j }| j t j D ]}|j j
}|d | t |t j
sot j
|j g|j R i |j }t j d|j | }| d| | | d S )Nr r )r get_languager settings
language_codereporterr r
Admonitionr r# r r
admonition rawsourcechildren
attributestitlelabelsinsertr )r languagenode node_namer2 r6 s r r" zAdmonitions.applyV s )$-*@*N*.-*@B BM))%*:;;
.
.D/IO""9---dE$455
."-dn At} A A A04A A
B (BCC!!!U+++!!*---
.
.r N)r# r$ r% r&