def tab_attr(attr, value, encoded=False):
    targetLength = 80
    lines = ['%s: ' % attr]
    if encoded:
        lines = ['%s:: ' % attr]
    for char in value:
        current_line = lines[-1]
        if len(current_line) < 80:
            new_line = current_line + char
            del lines[-1]
            lines.append(new_line)
        else:
            lines.append(" " + char)
    return "\n".join(lines)
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/tab_attr/original