Hacked By AnonymousFox
�
j��fӏ � �h � 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 � � ZdS )z&
Transforms for resolving references.
�reStructuredText� )�nodes�utils)� Transformc � � e Zd ZdZdZd� ZdS )�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 � t j � � D �]T}t |j t j � � s?|� d� � s*|� d� � s|� d� � r�bt |� � dk s
J d� � �|� d�� � }t |t j
� � r1|� dd� � � }t |t j
� � �1|�@t |t j t j f� � rt |t j � � s��$|d
�
|d
� � |d �
|d � � t |d� � si |_ t |d
� � si |_ |d
D ]}|| j j |<