[FIX] Multiline texts could not be matched for tranlations

bzr revid: acl@openerp.com-20130411162035-ij47tyulejkqqz4t
This commit is contained in:
Anael Closson 2013-04-11 18:20:35 +02:00
parent e2620bb5c7
commit 543c6012da
1 changed files with 1 additions and 1 deletions

View File

@ -562,7 +562,7 @@ instance.web.qweb.preprocess_node = function() {
if (translation && translation.value === 'off') {
return;
}
var match = /^(\s*)(.+?)(\s*)$/.exec(this.node.data);
var match = /^(\s*)([\s\S]+?)(\s*)$/.exec(this.node.data);
if (match) {
this.node.data = match[1] + instance.web._t(match[2]) + match[3];
}