Edgewall Software

Opened 4 years ago

Last modified 3 years ago

#13307 closed defect

jinjachecker doesn't correctly parse multiline expressions — at Initial Version

Reported by: Ryan J Ollos Owned by:
Priority: normal Milestone: 1.4.2
Component: general Version:
Severity: normal Keywords: jinjachecker
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

./contrib/jinjachecker.py trac/templates/environment_info.html -j
[...]
   51      {IF plugins:
   61            {FOR plugin in plugins:
   62               SET components = plugin.modules|map(attribute='components')|flatten
   65               SET url = (plugin.info.home_page or
   69                {IF url:
[...]

However, markup is:

          # set url = (plugin.info.home_page or
                       plugin.info.author_email and
                       'mailto:' + plugin.info.author_email)

Output of jinjachecker hould be:

[...]
   51      {IF plugins:
   61            {FOR plugin in plugins:
   62               SET components = plugin.modules|map(attribute='components')|flatten
   65               SET url = (plugin.info.home_page or
   66                          plugin.info.author_email and
   67                          'mailto:' + plugin.info.author_email)
   69                {IF url:
[...]

Change History (0)

Note: See TracTickets for help on using tickets.