B “äî\1 ã@sLdZdZddlmZmZmZddlmZGdd„deƒZGdd„deƒZ d S) 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 ZreStructuredTexté)ÚnodesÚutilsÚ languages)Ú Transformc@seZdZdZdZdd„ZdS)ÚCompounda Flatten all compound paragraphs. For example, transform :: into :: iŽcCsdx^|j tj¡D]L}d}x0|D](}|r8t|tjƒsFd}q|d d¡qW| |dd…¡qWdS)NTFÚclassesÚ continued)ÚdocumentÚtraverserÚcompoundÚ isinstanceZ InvisibleÚappendÚ replace_self)Úselfr Z first_childÚchild©rúB/tmp/pip-build-uw_ogi45/docutils/docutils/transforms/writer_aux.pyÚapply(s  zCompound.applyN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Údefault_priorityrrrrrrsrc@seZdZdZdZdd„ZdS)Ú AdmonitionsaZ Transform specific admonitions, like this: Note contents ... into generic admonitions, like this:: Note <paragraph> Note contents ... The admonition title is localized. i˜��c�������������C���s”���t� |�jjj|�jj¡}xx|�j tj¡D�]f}|j j }|d�  |¡�t |tj ƒs&tj |jf|jž|jŽ}t d|j|�¡}| d|¡�| |¡�q&W�d�S�)Nr���Ú�r���)r���Z get_languager ���ÚsettingsZ language_codeZreporterr ���r���Z AdmonitionÚ __class__r���r ���r ���Ú admonitionZ rawsourceÚchildrenÚ attributesÚtitleÚlabelsÚinsertr���)r���ÚlanguageÚnodeZ node_namer���r ���r���r���r���r���K���s����    zAdmonitions.applyN)r���r���r���r���r���r���r���r���r���r���r���5���s���r���N) r���Z __docformat__Zdocutilsr���r���r���Zdocutils.transformsr���r���r���r���r���r���r���Ú<module> ���s ���