Created
September 7, 2011 01:29
-
-
Save duboisf/1199511 to your computer and use it in GitHub Desktop.
Example of using stripMargin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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