def merge_lines(top, bot, icod="top"):
        """
        Merges two lines (top and bot) in the way that the overlapping make senses.
        Args:
            top (str): the top line
            bot (str): the bottom line
            icod (top or bot): in case of doubt, which line should have priority? Default: "top".
        Returns:
            str: The merge of both lines.
        """
        ret = ""
        for topc, botc in zip(top, bot):
            if topc == botc:
                ret += topc
            elif topc in '┼╪' and botc == " ":
                ret += "│"
            elif topc == " ":
                ret += botc
            elif topc in '┬╥' and botc in " ║│" and icod == "top":
                ret += topc
            elif topc in '┬' and botc == " " and icod == "bot":
                ret += '│'
            elif topc in '╥' and botc == " " and icod == "bot":
                ret += '║'
            elif topc in '┬│' and botc == "═":
                ret += '╪'
            elif topc in '┬│' and botc == "─":
                ret += '┼'
            elif topc in '└┘║│░' and botc == " " and icod == "top":
                ret += topc
            elif topc in '─═' and botc == " " and icod == "top":
                ret += topc
            elif topc in '─═' and botc == " " and icod == "bot":
                ret += botc
            elif topc in "║╥" and botc in "═":
                ret += "╬"
            elif topc in "║╥" and botc in "─":
                ret += "╫"
            elif topc in '╫╬' and botc in " ":
                ret += "║"
            elif topc == '└' and botc == "┌":
                ret += "├"
            elif topc == '┘' and botc == "┐":
                ret += "┤"
            elif botc in "┐┌" and icod == 'top':
                ret += "┬"
            elif topc in "┘└" and botc in "─" and icod == 'top':
                ret += "┴"
            else:
                ret += botc
        return ret
def merge_lines(top, bot, icod="top"):
        """
        Merges two lines (top and bot) in the way that the overlapping make senses.
        Args:
            top (str): the top line
            bot (str): the bottom line
            icod (top or bot): in case of doubt, which line should have priority? Default: "top".
        Returns:
            str: The merge of both lines.
        """
        ret = ""
        for topc, botc in zip(top, bot):
            if topc == botc:
                ret += topc
            elif topc in '┼╪' and botc == " ":
                ret += "│"
            elif topc == " ":
                ret += botc
            elif topc in '┬╥' and botc in " ║│" and icod == "top":
                ret += topc
            elif topc in '┬' and botc == " " and icod == "bot":
                ret += '│'
            elif topc in '╥' and botc == " " and icod == "bot":
                ret += '║'
            elif topc in '┬│' and botc == "═":
                ret += '╪'
            elif topc in '┬│' and botc == "─":
                ret += '┼'
            elif topc in '└┘║│░' and botc == " " and icod == "top":
                ret += topc
            elif topc in '─═' and botc == " " and icod == "top":
                ret += topc
            elif topc in '─═' and botc == " " and icod == "bot":
                ret += botc
            elif topc in "║╥" and botc in "═":
                ret += "╬"
            elif topc in "║╥" and botc in "─":
                ret += "╫"
            elif topc in '╫╬' and botc in " ":
                ret += "║"
            elif topc == '└' and botc == "┌":
                ret += "├"
            elif topc == '┘' and botc == "┐":
                ret += "┤"
            elif botc in "┐┌" and icod == 'top':
                ret += "┬"
            elif topc in "┘└" and botc in "─" and icod == 'top':
                ret += "┴"
            else:
                ret += botc
        return ret
def merge_lines ( top , bot , icod = "top" ) : ret = "" for topc , botc in zip ( top , bot ) : if topc == botc : ret += topc elif topc in '┼╪' and bot  ==   " ret += "│" elif topc == " " : ret += botc elif topc in '┬╥' and bot  in   ║ " and ico  == "top : ret += topc elif topc in '┬' a d b tc =  " " a d i od =  " ot": ret += '│' elif topc in '╥' a d b tc =  " " a d i od =  " ot": ret += '║' elif topc in '┬│' and bot  ==  ═" ret += '╪' elif topc in '┬│' and bot  ==  ─" ret += '┼' elif topc in '└┘║│░' and botc  = " " an  i od  = " op": ret += topc elif topc in '─═' and bot  ==   " and ico  ==  to ": ret += topc elif topc in '─═' and bot  ==   " and ico  ==  bo ": ret += botc elif topc in "║╥" and bot  in  ═" ret += "╬" elif topc in "║╥" and bot  in  ─" ret += "╫" elif topc in '╫╬' and bot  in   " ret += "║" elif topc == '└' a d b tc =  " ": ret += "├" elif topc == '┘' a d b tc =  " ": ret += "┤" elif botc in "┐┌" and ico  ==  to ': ret += "┬" elif topc in "┘└" and bot  in  ─" and i od  = 't p' ret += "┴" else : ret += botc return ret
Merges two lines (top and bot) in the way that the overlapping make senses.
        Args:
            top (str): the top line
            bot (str): the bottom line
            icod (top or bot): in case of doubt, which line should have priority? Default: "top".
        Returns:
            str: The merge of both lines.
Merges two lines ( top and bot ) in the way that the overlapping make senses . Args : top ( str ) : the top line bot ( str ) : the bottom line icod ( top or bot ) : in case of doubt which line should have priority? Default : top . Returns : str : The merge of both lines .