def wrap_onspace_strict(text, width):
    """Similar to wrap_onspace, but enforces the width constraint:
       words longer than width are split."""
    wordRegex = re.compile(r'\S{'+str(width)+r',}')
    return wrap_onspace(wordRegex.sub(lambda m: wrap_always(m.group(),width),text),width)
Similar to wrap_onspace, but enforces the width constraint:
       words longer than width are split.
recipes/Python/577615_Table_indentation/recipe-577615.py