[jbosstools-issues] [JBoss JIRA] (JBIDE-10946) <#noescape> without having seen <#escape> is not necessarily an error

Chris West (JIRA) jira-events at lists.jboss.org
Fri Feb 17 10:39:36 EST 2012


Chris West created JBIDE-10946:
----------------------------------

             Summary: <#noescape> without having seen <#escape> is not necessarily an error
                 Key: JBIDE-10946
                 URL: https://issues.jboss.org/browse/JBIDE-10946
             Project: Tools (JBoss Tools)
          Issue Type: Enhancement
          Components: FreeMarker
         Environment: FreeMarker IDE 1.1.0.v20111025-0320-H192-Final

Eclipse Java EE IDE for Web Developers.
Version: Indigo Release
Build id: 20110615-0604
Win7 x64 Java 7
            Reporter: Chris West
            Assignee: Max Rydahl Andersen


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:

{code:xml}
<#noformat>
  ${a.b} ${c}
</#noformat>
{code}

{noformat}
Error in template: foo.ftl
on line 1, column 1
noescape with no matching escape encountered.
{noformat}

This template may have been included:
{code:xml}
<#escape x as x?html>
  <#include "foo.ftl">
</#escape>
{code}

... 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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list