def join_lines(line1, line2):
    """Join 2 lines of text

    >>> join_lines('abc', 'de')
    'abcde'
    >>> join_lines('a-', 'b')
    'ab'
    """
    if line1 == u'':
        pass
    elif line1[-1] == u'-':
        line1 = line1[:-1]
    elif line1[-1] != u' ':
        line1 = line1 + u' '
    return line1 + line2
