def indent_text(text,<EOL>nb_tabs=<NUM_LIT:0>,<EOL>tab_str="<STR_LIT:U+0020>",<EOL>linebreak_input="<STR_LIT:\n>",<EOL>linebreak_output="<STR_LIT:\n>",<EOL>wrap=False):
if not wrap:<EOL><INDENT>lines = text.split(linebreak_input)<EOL>tabs = nb_tabs * tab_str<EOL>output = "<STR_LIT>"<EOL>for line in lines:<EOL><INDENT>output += tabs + line + linebreak_output<EOL><DEDENT>return output<EOL><DEDENT>else:<EOL><INDENT>return wrap_text_in_a_box(body=text, style='<STR_LIT>',<EOL>tab_str=tab_str, tab_num=nb_tabs)<EOL><DEDENT>
r"""Add tabs to each line of text.

    :param text: the text to indent
    :param nb_tabs: number of tabs to add
    :param tab_str: type of tab (could be, for example "\t", default: 2 spaces
    :param linebreak_input: linebreak on input
    :param linebreak_output: linebreak on output
    :param wrap: wethever to apply smart text wrapping.
        (by means of wrap_text_in_a_box)
    :return: indented text as string