Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1107

newlines and other special chars in SimpleTemplateEngine

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 1.0-JSR-3
    • None
    • Templating
    • None

    Description

      In SimpleTemplateEngine, you have to write:

      <%out<<"\\n"%>        // two backslashes needed
      

      to produce a single newline but it should really be:

       <%out<<"\n"%>        // one backslash
      

      Attachments

        Activity

          People

            paulk Paul King
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: