Skip to content

Instantly share code, notes, and snippets.

@duboisf
Created September 7, 2011 01:29
Show Gist options
  • Save duboisf/1199511 to your computer and use it in GitHub Desktop.
Save duboisf/1199511 to your computer and use it in GitHub Desktop.
Example of using stripMargin
package gitjira.actions
import gitjira.{Configuration, JIRA}
case class DescribeAction(number: Int) extends GitJiraAction {
def execute(config: Configuration, jira: JIRA) {
val issue = jira getIssue number
val output = """Issue: %s
|Assigned: %s
|Summary: %s
|Description: %s
|""".stripMargin
println(output format (issue.id, "TODO", issue.summary, issue.description))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment