title: Closures in a multiline string
body: <p>I am not sure if it is even possible, but I wish to add a closure with a loop in a multiline string that would generate another multiline string at each loop.</p>
  
  <pre><code> String body = """\
      Total Invoice Amount: £${totalInvAmt}
  
      ${quantities.each { qty -&gt;
          Offer offer = Offer.findByShoppingItem(qty.shoppingItem)
          def itemDetails = """\
              Name: ${offer.itemName}
              Qty: $qty.value"""
  
          itemDetails
      }}
      """
  </code></pre>
  
  <p>The closure will loop over a list of items and for each item concatenate an multistring.  All this produces is </p>
  
  <pre><code>Total Invoice Amount: £1100
  
      [100, 100]
  </code></pre>
  
  <p>Thanks in advance for any help </p>