Text Wrap

  • + 0 comments

    1 liner

    return '\n'.join(textwrap.wrap(string, width=max_width))