def _wrap_paragraphs(text, width=70, **kwargs):
 pars = text.split('\n')
 pars = ['\n'.join(textwrap.wrap(p, width=width, **kwargs)) for p in pars]
 s = '\n'.join(pars)
 return s

def _wrap_paragraphs ( text , width = 70 , ** kwargs ) : pars = text . split ( '\n' ) pars = [ '\n' . join ( textwrap . wrap ( p , width = width , ** kwargs ) ) for p in pars ] s = '\n' . join ( pars ) return s
wraps paragraphs instead .