관리-도구
편집 파일: writer_aux.cpython-311.pyc
� P�Dg� � �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 ��~/builddir/build/BUILD/imunify360-venv-2.4.0/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 )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"