From f984073251efe2f1ca35fb520139f268f91e86aa Mon Sep 17 00:00:00 2001 From: Daniel Dico Date: Thu, 29 Dec 2016 18:14:58 -0500 Subject: [PATCH] [FIX] pad: get pad content with newlines Some more recent versions of etherpad can have newlines in the pad content. Allowing newlines should not break anything that worked before and allow more etherpad versions to be used. closes #14877 opw-703173 --- addons/pad/pad.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/pad/pad.py b/addons/pad/pad.py index 711bbd46fc5..286c80d203a 100644 --- a/addons/pad/pad.py +++ b/addons/pad/pad.py @@ -75,7 +75,7 @@ class pad_common(osv.osv_memory): if url: try: page = urllib2.urlopen('%s/export/html'%url).read() - mo = re.search('(.*)',page) + mo = re.search('(.*)', page, re.DOTALL) if mo: content = mo.group(1) except: