
    Mh;                     "    d Z ddlZddlZddZdS )zText related utils.    N   Fc                 D   | dS d|z  d|z  z   }|rt          j        dt           j                  nt          j        dt           j                  }t          j        |||           }|                    t
          j        |z             r|dt          |                    S |S )a  Indent a string a given number of spaces or tabstops.

    indent(str,nspaces=4,ntabs=0) -> indent str by ntabs+nspaces.

    Parameters
    ----------

    instr : basestring
        The string to be indented.
    nspaces : int (default: 4)
        The number of spaces to be indented.
    ntabs : int (default: 0)
        The number of tabs to be indented.
    flatten : bool (default: False)
        Whether to scrub existing indentation.  If True, all lines will be
        aligned to the same indentation.  If False, existing indentation will
        be strictly increased.

    Returns
    -------

    str|unicode : string indented by ntabs and nspaces.

    N	 z^\s*^)recompile	MULTILINEsubendswithoslineseplen)instrnspacesntabsflattenindpatoutstrs          T/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/nbconvert/utils/text.pyindentr      s    2 }t
,w
&C/6
Y"*Wbl
+
+
+BJsBL<Y<YCVCe$$FrzC'(( #kS	k""M    )r   r   F)__doc__r   r   r    r   r   <module>r      s;      				 				           r   