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

SimpleTemplateEngine error :"Caught: Script1.groovy: 1: expecting anything but ''\n''; got it anyway @ line"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-3
    • groovy-jdk
    • None
    • jdk 1.5.0_02, Windows XP Sp2,Groovy 1.0-JSR-2

    Description

      Simple program, but the result surprised me.
      The template should WYSIWYG, but in this version of SimpleTemplateEngine of Groovy, all text must be written in one row and must use "\n" instead of an enter press.
      I think this should be a bug.

      attachment is the simple program and template file it uses.

      Attachments

        1. template.txt
          0.1 kB
          Alan L Zhang
        2. templateEngine.groovy
          0.3 kB
          Alan L Zhang

        Issue Links

          Activity

            People

              sormuras sormuras
              tiredhalt Alan L Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: