def truncate_text(text, limit=80):
    """
    truncates text to a provided length

    :param text: text we want to truncate
    :type text: str
    :param limit: how long we want the resulting string to be
    :type limit: int
    :return: truncated string
    :rtype: str
    """
    if len(text) > limit:
        text = text[:limit-3] + "..."
    return text