def get_breakpoints(text, min_width, max_width):
    """
    Find where newlines could be added to a string
    but don't bother if the result would be longer than max width
    or shorter than min width
    """
    breakpoints = []
    text = text.replace('\n', ' ')
    words = text.split(' ')
    growing_string = ''
    for word in words:
        growing_string += word + ' '
        if len(growing_string.rstrip()) >= min_width and len(growing_string
            .rstrip()) <= max_width:
            breakpoints.append(len(growing_string.rstrip()))
    return breakpoints
