def indent_multiline_assign(text):
    ret = []
    texts = text.split('\n')
    if len(texts) <= 1:
        return text
    try:
        p = texts[0].index('=')
    except:
        return text
    ret.append(texts[0])
    ret.append('\n')
    ret.append(indent('\n'.join(texts[1:]), ' ' * (p + 2)))
    return ''.join(ret)
        
#-------------------------------------------------------------------------------
dataset/ETHPy150Open PyHDI/Pyverilog/pyverilog/ast_code_generator/codegen.py/indent_multiline_assign/original