File: //lib/python3/dist-packages/docutils/transforms/__pycache__/references.cpython-312.pyc
�
�ddӏ � �. � d Z dZddlmZmZ ddlmZ G d� de� Z G d� de� Z G d � d
e� Z G d� de� Z
G d
� de� Z G d� de� Z G d� de
� Z G d� de� Z G d� de� Z G d� de� Z G d� dej$ � Zy)z&
Transforms for resolving references.
�reStructuredText� )�nodes�utils)� Transformc � � e Zd ZdZdZd� Zy)�PropagateTargetsa}
Propagate empty internal targets to the next element.
Given the following nodes::
<target ids="internal1" names="internal1">
<target anonymous="1" ids="id1">
<target ids="internal2" names="internal2">
<paragraph>
This is a test.
PropagateTargets propagates the ids and names of the internal
targets preceding the paragraph to the paragraph itself::
<target refid="internal1">
<target anonymous="1" refid="id1">
<target refid="internal2">
<paragraph ids="internal2 id1 internal1" names="internal2 internal1">
This is a test.
i c � � | j j t j � D �]- }t |j
t j � s3|j d� s"|j d� s|j d� r�\t |� dk( sJ d� �|j d�� }t |t j � r.|j dd� � }t |t j � r�.|�Dt |t j t j f� rt |t j � s��|d
j |d
� |d j |d � t |d� si |_ t |d
� si |_ |d
D ]* }|| j j |<