def join_wrapped_lines(lines):
    """
    Join one or multiple lines that wrapped. Returns the reconstructed line.
    Takes into account proper spacing between the lines (see
    STRIP_SPACE_CHARS).
    """
    if len(lines) == 1:
        return lines[0]

    joined = lines[0]
    for line in lines[1:]:
        if joined and joined[-1] in STRIP_SPACE_CHARS:
            joined += line
        else:
            joined += ' '
            joined += line

    return joined
def join_wrapped_lines ( lines ) : if len ( lines ) == 1 : return lines [ 0 ] joined = lines [ 0 ] for line in lines [ 1 : ] : if joined and joined [ - 1 ] in STRIP_SPACE_CHARS : joined += line else : joined += ' ' joined += line return joined
Join one or multiple lines that wrapped. Returns the reconstructed line.
    Takes into account proper spacing between the lines (see
    STRIP_SPACE_CHARS).