def split_string_separator(txt, size):
 if (len(txt) > size):
  txt = ''.join([re.sub(u'\\.(?P<ends>[^.]*)$', '.\n\n\\g<ends>', txt[i:(i + size)], 1) for i in xrange(0, len(txt), size)])
 return txt

def split_string_separator ( txt , size ) : if ( len ( txt ) > size ) : txt = '' . join ( [ re . sub ( u'\\.(?P<ends>[^.]*)$' , '.\n\n\\g<ends>' , txt [ i : ( i + size ) ] , 1 ) for i in xrange ( 0 , len ( txt ) , size ) ] ) return txt
splits the text by putting at the point size .