'Make links using the given traceback'

def make_links(self, traceback):

    lwords = traceback.split('"')
    result = (((len(lwords) != 0) and lwords[0]) or '')
    i = 1
    while (i < len(lwords)):
        link = self.make_link(lwords[i])
        if (link == ''):
            result += ('"' + lwords[i])
        else:
            result += link
            if ((i + 1) < len(lwords)):
                result += lwords[(i + 1)]
                i = (i + 1)
        i = (i + 1)
    return result
