U
    [e	                     @   s*   d dl Z d dlmZ G dd dejZdS )    N)basec                   @   s   e Zd ZdZdd ZdS )	FieldListzFormat values as a reStructuredText field list.

    For example::

      : name1 : value
      : name2 : value
      : name3 : a long value
          will be wrapped with
          a hanging indent
    c                 c   sF   t | D ]4\}}dj||d}tj|dd| jd}|d V  qdS )zFormat the data and return unicode text.

        :param data: A dictionary with string keys and simple types as
                     values.
        :type data: dict(str:?)
        z: {name} : {value})namevalue z    )initial_indentsubsequent_indentwidth
N)sorteditemsformattextwrapfill	max_width)selfdatar   r   	full_textZwrapped_text r   [/var/www/html/services/stratfitenv/lib/python3.8/site-packages/stevedore/example2/fields.pyr   !   s    zFieldList.formatN)__name__
__module____qualname____doc__r   r   r   r   r   r      s   r   )r   Zstevedore.exampler   ZFormatterBaser   r   r   r   r   <module>   s   