Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-10946

<#noescape> without having seen <#escape> is not necessarily an error

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.CR1
    • None
    • freemarker
    • None

      Currently FreeMarker IDE presents an error for each instance of <#noformat> it encounters, unless it's already seen a <#escape x as x?html> in the same file:

      <#noformat>
        ${a.b} ${c}
      </#noformat>
      
      Error in template: foo.ftl
      on line 1, column 1
      noescape with no matching escape encountered.
      

      This template may have been included:

      <#escape x as x?html>
        <#include "foo.ftl">
      </#escape>
      

      ... or may have been wrapped in a loader which does effectively the same thing, for example, http://watchitlater.com/blog/2011/10/default-html-escape-using-freemarker/

      This results in many spurious error reports. Please allow me to disable these.

            manderse@redhat.com Max Andersen
            faux_jira Chris West (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: