
    9j*                     N    d Z 	 ddlmZ  G d de      Zy# e$ r	 ddlmZ Y w xY w)z/
Created : 2021-07-30

@author: Eric Lapouyade
    )escapec                   (    e Zd ZdZd Zd Zd Zd Zy)Listingzclass to manage \n and \a without to use RichText,
    by this way you keep the current template styling

    use {{ mylisting }} in your template and
    context={ mylisting:Listing(the_listing_with_newlines) }
    c                 f    t        |t        t        f      st        |      }t        |      | _        y N)
isinstancestrbytesr   xml)selftexts     [/var/www/html/eeg-assistent/abrechnung/venv/lib/python3.12/site-packages/docxtpl/listing.py__init__zListing.__init__   s$    $e-t9D$<    c                     | j                   S r   r   r   s    r   __unicode__zListing.__unicode__       xxr   c                     | j                   S r   r   r   s    r   __str__zListing.__str__   r   r   c                     | j                   S r   r   r   s    r   __html__zListing.__html__"   r   r   N)__name__
__module____qualname____doc__r   r   r   r    r   r   r   r      s     r   r   N)r   htmlr   ImportErrorcgiobjectr   r   r   r   <module>r#      s2   
f   s    $$