def fit(text, size):
    """
    Fit the text to the given size
    """
    size = int(size)
    if size <= 1 or len(text) <= size:
        return text.ljust(size)
    return text[:size - 1] + "\u2026"