fix Scope printing when task axis is not Select

This commit is contained in:
Mark Harrah 2011-02-05 21:35:54 -05:00
parent ae7e029a46
commit a49872c35d
1 changed files with 2 additions and 2 deletions

View File

@ -59,9 +59,9 @@ object Scope
import scope.{project, config, task, extra}
val projectPrefix = project.foldStrict(Project.display, "*", ".")
val configPrefix = config.foldStrict(display, "*:", ".:")
val taskPostfix = task.foldStrict(" for " + _.label, "", "")
val taskPostfix = task.foldStrict(x => (" for " + x.label) :: Nil, Nil, Nil)
val extraPostfix = extra.foldStrict(_.entries.map( _.toString ).toList, Nil, Nil)
val extras = taskPostfix :: extraPostfix
val extras = taskPostfix ::: extraPostfix
val postfix = if(extras.isEmpty) "" else extras.mkString("(", ", ", ")")
projectPrefix + "/" + configPrefix + sep + postfix
}