o w#[1 @sLdZdZddlmZmZmZddlmZGdddeZGdddeZ 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 reStructuredText)nodesutils languages) Transformc@eZdZdZdZddZdS)Compounda Flatten all compound paragraphs. For example, transform :: into :: icCs\|jtjD]$}d}|D]}|rt|tjsd}q |ddq ||ddqdS)NTFclasses continued)documenttraversercompound isinstance Invisibleappend replace_self)selfr first_childchildr@/usr/lib/python3/dist-packages/docutils/transforms/writer_aux.pyapply(s zCompound.applyN__name__ __module__ __qualname____doc__default_priorityrrrrrrs rc@r) 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}|�jtjD�]6}|j j }|d� |�t |tj sHtj |jg|jR�i�|j}td|j|�}|d|�||�qd�S�)Nr ����r���)r��� get_languager ���settings language_codereporterr ���r��� Admonition __class__r���r���r��� admonition rawsourcechildren attributestitlelabelsinsertr���)r���languagenode node_namer&���r*���r���r���r���r���K���s���    zAdmonitions.applyNr���r���r���r���r���r���5���s���� r���N) r��� __docformat__docutilsr���r���r���docutils.transformsr���r���r���r���r���r���r���<module>���s ���