Irit Katriel <iritkatr...@gmail.com> added the comment:
You should be able to do them in one re, something like text = re.sub(r' ?\n', ' ', text) ---------- nosy: +iritkatriel _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32397> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com