~openerp/openerp-web/7.0

Viewing all changes in revision 3923.

  • Committer: Xavier Morel
  • Date: 2013-05-16 10:59:08 UTC
  • mfrom: (3891.1.1 7.0)
  • Revision ID: xmo@openerp.com-20130516105908-exgtwwf785hrmedo
[FIX] handling of multiline strings during qweb translation

Javascript regexps don't provide a DOTALL flag (to make `.` match
newlines) so have to replace `.` by `[\s\S]` hack, as *that* will
match newlines as well as all other characters.

Note: the `m` flag has a different meaning, it makes `^` and `$` match
      the start and end of lines rather than the start and end of the
      string itself.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: