From 543c6012da4022087cb0d2ed5a24571371500f9b Mon Sep 17 00:00:00 2001 From: Anael Closson Date: Thu, 11 Apr 2013 18:20:35 +0200 Subject: [PATCH] [FIX] Multiline texts could not be matched for tranlations bzr revid: acl@openerp.com-20130411162035-ij47tyulejkqqz4t --- addons/web/static/src/js/coresetup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/coresetup.js b/addons/web/static/src/js/coresetup.js index dedb4a49710..fd1ace312a9 100644 --- a/addons/web/static/src/js/coresetup.js +++ b/addons/web/static/src/js/coresetup.js @@ -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]; }