o
    Uc}                     @   s   d d Z dS )c           	      C   s   t dd | D }||krtd|| }|dkrt | S t| d }|| }|| }d}| d d D ]}||7 }|d| 7 }|dkrK|d7 }|d8 }q3|| d 7 }|S )	Nc                 s   s    | ]}t |V  qd S )N)len).0it r   (/home/sam/code/vtrack420/lib/__init__.py	<genexpr>   s    zflex_combine.<locals>.<genexpr>z'items cannot fit in the specified width         )sum
ValueErrorr   )	itemswidthZ	total_lenrestnZspacing_between_itemsZextra_spacingoutputitemr   r   r   flex_combine   s&   r   N)r   r   r   r   r   <module>   s    