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

Add stripMargin() to multi-line strings

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.3, 1.8-beta-1
    • groovy-jdk
    • None

    Description

      As explained in the following thread http://www.nabble.com/GString.stripMargin---td21679146.html Scals provides a stripMargin() method to its multi-line strings which is very helpful in overall situations. For something fancier not covered by the default behavior the user will have to roll its own impl.

      Link to Scala api docs
      http://www.scala-lang.org/docu/files/api/scala/runtime/RichString.html#stripMargin

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            aalmiray Andres Almiray
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: