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

GStringTemplateEngine breaks on multi-line templates

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-1
    • 1.0-JSR-2
    • None
    • None
    • Any

    Description

      As JSR Groovy doesn't support multi-line strings inside of single quotes, GStringTemplateEngine needs to use triple quotes around all template parts.

      The patch is simple and is attached. All existing tests continue to work, as does my test template that worked under 1.0-beta-10 but broke with 1.0-JSR-1 without this patch.

      Attachments

        1. patchfile.txt
          6 kB
          Rod Cope

        Activity

          People

            guillaume Guillaume Sauthier
            rodcope Rod Cope
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified