src/swagger2x.py
def add_justification_smart(depth, input_string, no_dot_split=False):
    """
    add the spaces for an correct indentation of the generated RAML code section
    for descriptions in the RAML definitions
    :param depth: character depth, e.g. an string prefix
    :param input_string: string to be adjusted
    :return:  adjusted string
    """
    ret_string = ""
    all_lines = input_string.splitlines()
    for x_line in all_lines:
        if no_dot_split is False:
            lines = x_line.split(". ")
            for line in lines:
                string1 = depth + line + "\n"
                if len(line) > 0:
                    ret_string = ret_string + string1
        else:
            string1 = depth + x_line
            ret_string = ret_string + string1
            if x_line is not all_lines[-1]:
                ret_string = ret_string + "\n"
    return ret_string

    add the spaces for an correct indentation of the generated RAML code section
    for descriptions in the RAML definitions
    :param depth: character depth, e.g. an string prefix
    :param input_string: string to be adjusted
    :return:  adjusted string
    
add the spaces for an correct indentation of the generated RAML code section
for descriptions in the RAML definitions
add the spaces for an correct indentation of the generated RAML code section for descriptions in the RAML definitions
def add_justification_smart(depth, input_string, no_dot_split=False):
    ret_string = ""
    all_lines = input_string.splitlines()
    for x_line in all_lines:
        if no_dot_split is False:
            lines = x_line.split(". ")
            for line in lines:
                string1 = depth + line + "\n"
                if len(line) > 0:
                    ret_string = ret_string + string1
        else:
            string1 = depth + x_line
            ret_string = ret_string + string1
            if x_line is not all_lines[-1]:
                ret_string = ret_string + "\n"
    return ret_string
def add_justification_smart ( depth , input_string , no_dot_split = False ) : ret_string = "" all_lines = input_string . splitlines ( ) for x_line in all_lines : if no_dot_split is False : lines = x_line . split ( ". " ) for line in lines : string1 = depth + line + "\n" if len ( line ) > 0 : ret_string = ret_string + string1 else : string1 = depth + x_line ret_string = ret_string + string1 if x_line is not all_lines [ - 1 ] : ret_string = ret_string + "\n" return ret_string
add the spaces for an correct indentation of the generated RAML code section
for descriptions in the RAML definitions
add the spaces for an correct indentation of the generated RAML code section for descriptions in the RAML definitions
"""
    add the spaces for an correct indentation of the generated RAML code section
    for descriptions in the RAML definitions
    :param depth: character depth, e.g. an string prefix
    :param input_string: string to be adjusted
    :return:  adjusted string
    """
None
depth
character depth, e.g. an string prefix
character depth e . g . an string prefix
input_string
string to be adjusted
string to be adjusted
no_dot_split