def wrap_always(text, width):
    """A simple word-wrap function that wraps text on exactly width characters.
       It doesn't split the text in words."""
    return '\n'.join([ text[width*i:width*(i+1)] \
                       for i in xrange(int(math.ceil(1.*len(text)/width))) ])
A simple word-wrap function that wraps text on exactly width characters.
       It doesn't split the text in words.
recipes/Python/577615_Table_indentation/recipe-577615.py