def _join_wrapped_equation_lines(unused_eqs_temp_in, eqs_temp):
    """helper for ``lines_to_eqs``"""
    eqs = []
    neqs = len(eqs_temp)
    is_join = False
    eqi = ''
    for i, eq in enumerate(eqs_temp):
        if is_join:
            eq = eqi.rstrip() + eq.lstrip()
        eqi = eq.strip().replace(' ', '')
        if i == 0 and eqi == '':
            continue
        if i == 0:
            if eqi.endswith(';'):
                eqi = eqi[:-1]
                assert not eqi.endswith(';'), eq
            else:
                is_join = True
            assert len(eqi) <= 56, eqi
        elif i != neqs - 1:
            if eqi.endswith(';'):
                eqi = eqi[:-1]
                is_join = False
                assert not eqi.endswith(';'), eq
            else:
                is_join = True
        else:
            is_join = False
        if not is_join:
            if '=' not in eqi:
                raise SyntaxError('line=%r expected an equal sign' % eqi)
            eqs.append(eqi)
    if is_join:
        eqs.append(eqi)
    return eqs
