ejucovy  committed b117fee

Let users include newlines in derivation templates

Since they're in config it's awkward to actually include
a newline in the derivation template (particularly when
using INIAdminPlugin to do it ttw) -- so the user can now
just write "foo\nbar" to include a newline.

  • Participants
  • Parent commits b8d7484

Comments (0)

Files changed (1)

File newticketlikethis/

             template, new_field = derivation.split('->')
             if new_field in self.excluded_fields:
-            template = NewTextTemplate(template.encode('utf8'))
+            template = NewTextTemplate(template.replace("\\n", "\n").encode('utf8'))
             fields[new_field] = template.generate(ticket=ticket).render('text', encoding=None).strip()
         for f in data.get('fields', []):