
    fh?                     $    d Z  G d d          ZdS )zQTablib - Jira table export support.

   Generates a Jira table from the dataset.
c                   l    e Zd ZdZed             Zed             Zed             Zedd            ZdS )	
JIRAFormatjirac                     |j         r|                     |j                   nd}|                     |          }|r| d| n|S )a  Formats the dataset according to the Jira table syntax:

        ||heading 1||heading 2||heading 3||
        |col A1|col A2|col A3|
        |col B1|col B2|col B3|

        :param dataset: dataset to serialize
        :type dataset: tablib.core.Dataset
         
)headers_get_header	_get_body)clsdatasetheaderbodys       K/var/www/histauto/venv/lib/python3.11/site-packages/tablib/formats/_jira.py
export_setzJIRAFormat.export_set
   sR     6=_L111"}}W%%&,6&""D"""$6    c                 F     d                      fd|D                       S )Nr   c                 :    g | ]}                     |          S  _serialize_row).0rowr   s     r   
<listcomp>z(JIRAFormat._get_body.<locals>.<listcomp>   s'    EEEc#,,S11EEEr   )join)r   r   s   ` r   r
   zJIRAFormat._get_body   s*    yyEEEEWEEEFFFr   c                 0    |                      |d          S )Nz||)	delimiterr   )r   r   s     r   r	   zJIRAFormat._get_header   s    !!'T!:::r   |c                 j    d                     ||                    d |D                       |          S )Nz{}{}{}c                 4    g | ]}|rt          |          nd S ) )str)r   items     r   r   z-JIRAFormat._serialize_row.<locals>.<listcomp>&   s'    GGG46CIII3GGGr   )formatr   )r   r   r   s      r   r   zJIRAFormat._serialize_row"   s<    NNGG3GGGHH
 
 	
r   N)r   )	__name__
__module____qualname__titleclassmethodr   r
   r	   r   r   r   r   r   r      s        E7 7 [7 G G [G ; ; [; 
 
 
 [
 
 
r   r   N)__doc__r   r   r   r   <module>r*      sA    !
 !
 !
 !
 !
 !
 !
 !
 !
 !
r   