[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
This commit is contained in:
committed by
Nicolas Lempereur
parent
3805eb620a
commit
f984073251
+1
-1
@@ -75,7 +75,7 @@ class pad_common(osv.osv_memory):
|
||||
if url:
|
||||
try:
|
||||
page = urllib2.urlopen('%s/export/html'%url).read()
|
||||
mo = re.search('<body>(.*)</body>',page)
|
||||
mo = re.search('<body>(.*)</body>', page, re.DOTALL)
|
||||
if mo:
|
||||
content = mo.group(1)
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user