[FIX] Multiline texts could not be matched for tranlations
bzr revid: acl@openerp.com-20130411162035-ij47tyulejkqqz4t
This commit is contained in:
parent
e2620bb5c7
commit
543c6012da
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue