def nl2p(s):
 return u'\n'.join(((u'<p>%s</p>' % p) for p in _par_re.split(s)))

def nl2p ( s ) : return u'\n' . join ( ( ( u'<p>%s</p>' % p ) for p in _par_re . split ( s ) ) )
add paragraphs to a text .