title: Indenting a heredoc in a Groovy source file
body: <p>I'd like to preserve the expected indentation in my source file when using a heredoc but, at the same time, have the contents of the here document not indented when rendered. E.g. the following</p>
  
  <pre><code>// myscript.groovy
  if ( someCondition ) {
    println """
    some multi-line
    content
    """
  }
  </code></pre>
  
  <p>will print an indented output e.g.</p>
  
  <pre><code>$ groovy myscript.groovy
  
      some multi-line
      content
  </code></pre>
  
  <p>but instead I'd like it to just print the content unindented as follows</p>
  
  <pre><code>$ groovy myscript.groovy
  
  some multi-line
  content
  </code></pre>
  
  <p>how can this be accomplished in Groovy?</p>
  
  <p>Bash has the <code>&lt;&lt;-STRING</code> heredoc definition to accomplish this but I've not been able to find anything similar for Groovy.        </p>