File: //lib/python3.6/site-packages/docutils/transforms/__pycache__/references.cpython-36.opt-1.pyc
3
w2�e� � @ s� d Z dZddlZddlZddlmZmZ ddlmZm Z G dd� de �Z
G dd � d e �ZG d
d� de �ZG dd
� d
e �Z
G dd� de �ZG dd� de �ZG dd� de�ZG dd� de �ZG dd� de �ZG dd� de �ZG dd� dej�ZdS )z&
Transforms for resolving references.
ZreStructuredText� N)�nodes�utils)�TransformError� Transformc @ s e Zd ZdZdZdd� 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 C sf �x^| j jtj�D �]J}t|jtj�s|jd�s|jd�s|jd�rFq|jdd�}|d k o�t|tj � rvt|tj
� s�t|tj�r|d j|d � |d j|d � t|d�s�i |_t|d �s�i |_
x&|d D ]}|| j j|<